From bfd8d2d6f4881c7add5c14bbabf992adbd29f2aa Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Thu, 26 Dec 2019 13:46:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/CommonController.class.php | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Application/Mobile/Controller/CommonController.class.php b/Application/Mobile/Controller/CommonController.class.php index 99aba36d5..4127a0153 100644 --- a/Application/Mobile/Controller/CommonController.class.php +++ b/Application/Mobile/Controller/CommonController.class.php @@ -133,10 +133,10 @@ class CommonController extends BaseController { $this->respondError('用户不存在'); } //更新用户 - $upres = $userApi->updatePassword($userInfo['id'], $user['password']); + $upres = $userApi->updatePassword($userInfo['id'], $params['password']); if($upres){ //自动登陆 - $userId = $userApi->login($user['account'], $user['password'],1); + // $userId = $userApi->login($params['account'], $params['password'], 1); $this->respondSuccess('修改成功'); }else{ @@ -180,18 +180,18 @@ class CommonController extends BaseController { } $data = [ - 'account' => $account, - 'password' => think_ucenter_md5($password, UC_AUTH_KEY), - 'phone' => $phone, - 'head_img' =>'', + 'account' => $account, + 'password' => think_ucenter_md5($password, UC_AUTH_KEY), + 'phone' => $phone, + 'head_img' => '', 'promote_id' => $promote_id, - 'promote_account' =>get_promote_account($promote_id), + 'promote_account' => get_promote_account($promote_id), 'register_way' => $register_way, 'register_type' => $register_type, - 'register_ip' => get_client_ip(), - 'parent_id'=>get_fu_id($promote_id), - 'parent_name'=>get_parent_name($promote_id), - 'register_time'=>time(), + 'register_ip' => get_client_ip(), + 'parent_id' => get_fu_id($promote_id), + 'parent_name' => get_parent_name($promote_id), + 'register_time' => time(), 'check_time' => time(), ];