Commit cf73248c18eeab617a33a07ebf9aa3474d28bc77
1 parent
fa2313a8
fix: roleByUid 字符串问题
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/utils/MysqlUtil.lua
... | ... | @@ -77,7 +77,7 @@ function roleUnRegister(roleId) |
77 | 77 | end |
78 | 78 | |
79 | 79 | function roleByUid(uid) |
80 | - local res = mysqlproxy:query(string.format("SELECT id, name, level, FROM `Role` WHERE `del` = 0 and `uid` = %s", uid)) | |
80 | + local res = mysqlproxy:query(string.format("SELECT id, name, level, FROM `Role` WHERE `del` = 0 and `uid` = '%s'", uid)) | |
81 | 81 | if res["errno"] or not next(res) then |
82 | 82 | return false |
83 | 83 | end | ... | ... |