zengyyh 4 weeks ago
parent 88f7fcd465
commit ecd3291702
  1. 14
      app/api/service/passport/Login.php

@ -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']);
// 记录登录态

Loading…
Cancel
Save