调整登录逻辑

This commit is contained in:
柳清爽
2025-03-27 18:08:28 +08:00
parent 9c648eaffc
commit c55cc5c644
4 changed files with 206 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ class AuthService
public function login($account, $password, $typeId, $ip)
{
// 获取用户信息
$user = User::getAdminUser($account, $password, $typeId);
$user = User::getUser($account, $password, $typeId);
if (empty($user)) {
// 记录登录失败