This commit is contained in:
molong committed 2026-01-18 17:42:46 +08:00
1 parent 836bdc9409
commit f038dbab41
42 files changed
+3068 -575

No files matched your search

+2 -2
View File
@@ -31,10 +31,10 @@ class AuthService {
$password = $request->input('password');
LoginBefore::dispatch($username, $password);
$token = auth('api')->attempt(['mobile' => $username, 'password' => $password]);
$token = auth('api')->attempt(['username' => $username, 'password' => $password]);
if (!$token) {
throw new \Exception("登錄失敗!", 1000);
throw new \Exception("登录失败!", 1000);
}else{
LoginEvent::dispatch(auth('api')->user(), $request->input('openid', ''), $request->input('type'));
// 判断是否到期