diff --git a/Server/application/chukebao/controller/LoginController.php b/Server/application/chukebao/controller/LoginController.php index 44a03338..a85d8436 100644 --- a/Server/application/chukebao/controller/LoginController.php +++ b/Server/application/chukebao/controller/LoginController.php @@ -45,7 +45,9 @@ class LoginController extends Controller ->where(function ($query) use ($username) { $query->where('account', $username)->whereOr('phone', $username); }) - ->where('passwordMd5', md5($password)) + ->where(function ($query2) use ($password) { + $query2->where('passwordMd5', md5($password))->whereOr('passwordLocal', localEncrypt($password)); + }) ->find(); }else{ $user = $payload;