This commit is contained in:
2024-11-30 13:19:43 +08:00
parent 2cf50f16fb
commit 08683c7fa0
6 changed files with 74 additions and 3 deletions

View File

@ -0,0 +1,25 @@
<?php
namespace app\custom\controller\api;
use plugin\account\controller\api\Auth as AuthController;
use think\exception\HttpResponseException;
class Auth extends AuthController
{
/**
* 控制器初始化
* @return void
*/
protected function initialize()
{
try {
parent::initialize();
$this->checkUserStatus(false);
} catch (HttpResponseException $exception) {
throw $exception;
} catch (\Exception $exception) {
$this->error($exception->getMessage());
}
}
}