Commit 9ad83c89534c3521f47bc6fcf8d0075c639018a0

Authored by zhangqijia
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,10 +266,10 @@ function _M.hero_draw_pro(query)
266 end 266 end
267 267
268 function _M.role_by_uid(query) 268 function _M.role_by_uid(query)
269 - local res = roleByUid(query.uid) 269 + local ret, res= roleByUid(query.uid)
270 local rsp = {} 270 local rsp = {}
271 rsp.code = 0 271 rsp.code = 0
272 - if not res then 272 + if not ret then
273 rsp.code = -1 273 rsp.code = -1
274 return json.encode(rsp) 274 return json.encode(rsp)
275 end 275 end