|
@@ -153,16 +153,11 @@ function root.usr_register_by_phone(msg)
|
153
|
153
|
return root.usr_login_by_phone(msg)
|
154
|
154
|
end
|
155
|
155
|
local uid = util_global:gen_user_id()
|
156
|
|
- log.info("usr_register_by_phone account[%s] uid[%s]", tostring(account), tostring(uid))
|
157
|
156
|
-- 注册账号
|
158
|
157
|
local err = moduleData:hset(account, "account", "account", account)
|
159
|
|
- log.info("usr_register_by_phone account[%s] err[%s]", tostring(account), tostring(err))
|
160
|
158
|
err = moduleData:hset(account, "account", "password", password)
|
161
|
|
- log.info("usr_register_by_phone password[%s] err[%s]", tostring(password), tostring(err))
|
162
|
159
|
err = moduleData:hset(account, "account", "uid", uid)
|
163
|
|
- log.info("usr_register_by_phone uid[%s] err[%s]", tostring(uid), tostring(err))
|
164
|
160
|
err = accountObj:backup_to_db()
|
165
|
|
- log.info("usr_register_by_phone backup_to_db err[%s]", tostring(err))
|
166
|
161
|
|
167
|
162
|
-- 正常注册
|
168
|
163
|
userData:user_init_register_info(uid, msg)
|