|
|
|
@ -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(),
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
|