This commit is contained in:
2026-01-18 17:42:46 +08:00
parent 836bdc9409
commit f038dbab41
42 changed files with 3068 additions and 575 deletions

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'));
// 判断是否到期