Commit 9ad83c89534c3521f47bc6fcf8d0075c639018a0
1 parent
1281f467
fix: role_by_uid 处理错误
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/actions/HttpAction.lua
... | ... | @@ -266,10 +266,10 @@ function _M.hero_draw_pro(query) |
266 | 266 | end |
267 | 267 | |
268 | 268 | function _M.role_by_uid(query) |
269 | - local res = roleByUid(query.uid) | |
269 | + local ret, res= roleByUid(query.uid) | |
270 | 270 | local rsp = {} |
271 | 271 | rsp.code = 0 |
272 | - if not res then | |
272 | + if not ret then | |
273 | 273 | rsp.code = -1 |
274 | 274 | return json.encode(rsp) |
275 | 275 | end | ... | ... |