sdk添加注册日志

master
liaojinling 5 years ago
parent 6e8d05e449
commit 22783c3168

@ -670,10 +670,9 @@ class UserController extends BaseController
$user = json_decode(base64_decode(file_get_contents("php://input")), true);
#判断数据是否为空
if (empty($user)) {
$this -> set_message(1001, "fail", "注册数据不能为空");
}
Log::write('user_register:' . date('Y-m-d H:i:s') . ' ---- ' . json_encode($user), 'INFO');
/**是否开启ucenter**/
if (C('UC_OPEN') == 1) {
//Ucenter注册
@ -720,10 +719,10 @@ class UserController extends BaseController
#获取SDK上POST方式传过来的数据 然后base64解密 然后将json字符串转化成数组
$user = json_decode(base64_decode(file_get_contents("php://input")), true);
if (empty($user)) {
$this -> set_message(1001, "fail", "注册数据不能为空");
}
Log::write('user_email_register:' . date('Y-m-d H:i:s') . ' ---- ' . json_encode($user), 'INFO');
$v_res = $this -> verify_email_code($user['account'], $user['code']);
if ($v_res) {
@ -745,10 +744,9 @@ class UserController extends BaseController
$user = json_decode(base64_decode(file_get_contents("php://input")), true);
#判断数据是否为空
if (empty($user)) {
$this -> set_message(1001, "fail", "注册数据不能为空");
}
Log::write('user_phone_register:' . date('Y-m-d H:i:s') . ' ---- ' . json_encode($user), 'INFO');
#验证短信验证码
$this -> sms_verify($user['account'], $user['code']);
/**是否开启ucenter**/

Loading…
Cancel
Save