单例的 construct 方法应为 私有
This commit is contained in:
parent
e15e6e0964
commit
ae5e96ec1b
@ -53,7 +53,7 @@ class JwtAuth
|
||||
}
|
||||
|
||||
// 私有化构造函数
|
||||
public function __construct()
|
||||
private function __construct()
|
||||
{
|
||||
// jwt 过期时间
|
||||
$this->expTime = get_system_config('token','exptime');
|
||||
|
Loading…
x
Reference in New Issue
Block a user