diff --git a/app/Controller/Api/V1/AuthController.php b/app/Controller/Api/V1/AuthController.php index 1cd375e..294baea 100644 --- a/app/Controller/Api/V1/AuthController.php +++ b/app/Controller/Api/V1/AuthController.php @@ -10,7 +10,7 @@ namespace App\Controller\Api\V1; -use App\Event\UserLogin; +use App\Event\LoginEvent; use Hyperf\Di\Annotation\Inject; use Hyperf\HttpServer\Annotation\Controller; use Hyperf\HttpServer\Annotation\RequestMapping; @@ -60,7 +60,7 @@ class AuthController extends CController return $this->response->error('登录异常,请稍后再试!'); } - event()->dispatch(new UserLogin($this->request, $user)); + event()->dispatch(new LoginEvent($this->request, $user)); return $this->response->success([ 'authorize' => [ diff --git a/app/Event/UserLogin.php b/app/Event/LoginEvent.php similarity index 96% rename from app/Event/UserLogin.php rename to app/Event/LoginEvent.php index 1cd8648..48fe5a3 100644 --- a/app/Event/UserLogin.php +++ b/app/Event/LoginEvent.php @@ -1,11 +1,12 @@