Explorar o código

修改手机登录/注册

neo hai 1 ano
pai
achega
c7104068fb
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      nodes/login/controllers/usr.lua

+ 2 - 2
nodes/login/controllers/usr.lua

@@ -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