2.优化登录跳转接口 3.优化登录跳转接口 4.修复CURD生成代码模块表不加前缀访问返回404问题 5.系统级报错***优化报错Fatal error: Type of app\common\library\token\TokenExpirationException::$message
31 lines
531 B
PHP
31 lines
531 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace app\common\library\token;
|
|
|
|
use Exception;
|
|
|
|
/**
|
|
* Token 过期异常
|
|
*/
|
|
class TokenExpirationException extends Exception
|
|
{
|
|
protected array $data = [];
|
|
|
|
public function __construct(
|
|
string $message = '',
|
|
int $code = 409,
|
|
array $data = [],
|
|
?\Throwable $previous = null
|
|
) {
|
|
$this->data = $data;
|
|
parent::__construct($message, $code, $previous);
|
|
}
|
|
|
|
public function getData(): array
|
|
{
|
|
return $this->data;
|
|
}
|
|
}
|