rabin %!s(int64=3) %!d(string=hai) anos
pai
achega
f794565bed
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      service/agent/src/Auth.php

+ 2 - 2
service/agent/src/Auth.php

@@ -25,7 +25,7 @@ class Auth
         if (!$user) {
             Dever::alert('登录失败,手机号错误,请重新输入');
         }
-        if ($pass && ($user['password'] != sha1($pass) && $user['password'] != md5($pass))) {
+        if ($pass && ($user['password'] != sha1($pass) && $user['password'] != sha1(md5($pass)))) {
             Dever::alert('登录失败,密码错误,请重新输入');
         }
 
@@ -52,7 +52,7 @@ class Auth
         if (!$user) {
             Dever::alert('登录失败,手机号错误,请重新输入');
         }
-        if ($user['password'] != sha1($pass)) {
+        if ($pass && ($user['password'] != sha1($pass) && $user['password'] != sha1(md5($pass)))) {
             Dever::alert('登录失败,密码错误,请重新输入');
         }