单例的 construct 方法应为 私有

This commit is contained in:
yuj 2022-06-13 02:40:47 +00:00 committed by Gitee
parent e15e6e0964
commit ae5e96ec1b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -53,7 +53,7 @@ class JwtAuth
}
// 私有化构造函数
public function __construct()
private function __construct()
{
// jwt 过期时间
$this->expTime = get_system_config('token','exptime');