|
@@ -148,7 +148,7 @@ function root.usr_register_by_phone(msg)
|
148
|
148
|
-- 账号信息
|
149
|
149
|
local accountObj = accountModule.new(account)
|
150
|
150
|
-- 已注册
|
151
|
|
- if accountObj:get_data_from_db() then
|
|
151
|
+ if not is_empty(accountObj:get_data_from_db()) then
|
152
|
152
|
-- return code.USR.ALREADY_REGISTER
|
153
|
153
|
return root.usr_login_by_phone(msg)
|
154
|
154
|
end
|
|
@@ -180,7 +180,7 @@ function root.usr_login_by_phone(msg)
|
180
|
180
|
end
|
181
|
181
|
|
182
|
182
|
local accountObj = accountModule.new(account)
|
183
|
|
- if not accountObj:get_data_from_db() then
|
|
183
|
+ if is_empty(accountObj:get_data_from_db()) then
|
184
|
184
|
return code.USR.NOT_EXIST_USER
|
185
|
185
|
end
|
186
|
186
|
|