fix: 修复插件钩子调用

This commit is contained in:
Ying
2022-08-22 11:23:53 +08:00
parent f6b2eeae15
commit ad639339cb
4 changed files with 3 additions and 4 deletions

View File

@@ -237,7 +237,7 @@ class Auth
$response->cookie('token', $this->token,$this->keepTime, '/');
$response->cookie('nickname', $userInfo['nickname'],$this->keepTime, '/');
Cache::set($this->token, $userInfo['id'], $this->keepTime);
Event::emit("system.userLoginSuccess", $userInfo);
Event::emit("userLoginSuccess", $userInfo);
return $response;
}