12345678910111213141516171819 |
- <?php
- namespace App\Plugins\Result;
- use App\Plugins\Plugin;
- use Illuminate\Http\JsonResponse;
- class LoginOut extends Plugin
- {
- public function handler(): JsonResponse
- {
- $this->loginService->isLoginJson();
- // 删除当前用户的缓存信息
- $this->loginService->clearLoginInfo();
- return responseMessage(1001, '操作成功!');
- }
- }
|