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