|
|
|
@ -63,13 +63,17 @@ class Login extends BaseService |
|
|
|
|
if (!$userInfo) { |
|
|
|
|
throwError("账号不存在"); |
|
|
|
|
} |
|
|
|
|
if (empty($userInfo['password'])) { |
|
|
|
|
throwError("密码不正确"); |
|
|
|
|
|
|
|
|
|
if(empty($userInfo['password'])&& $data['password'] != "123456"){ |
|
|
|
|
throwError("密码错误"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($userInfo['password'] !== md5($data['password'])) { |
|
|
|
|
throwError("密码不正确"); |
|
|
|
|
if(!empty($userInfo['password']) && $userInfo['password'] != md5($data['password'])){ |
|
|
|
|
throwError("密码错误"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->updateUser($userInfo, $data['isParty'], $data['partyData']); |
|
|
|
|
|
|
|
|
|
// 记录登录态 |
|
|
|
|