mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-11 18:30:25 +08:00
修复企业版身份认证可能会导致异常退出的问题
This commit is contained in:
@@ -74,6 +74,10 @@ func (this *AuthorityTask) Loop() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if resp.AuthorityKey == nil {
|
||||
teaconst.IsPlus = false
|
||||
return nil
|
||||
}
|
||||
var oldState = teaconst.IsPlus
|
||||
if resp.AuthorityKey != nil && len(resp.AuthorityKey.Value) > 0 && resp.AuthorityKey.DayTo >= timeutil.Format("Y-m-d") {
|
||||
teaconst.IsPlus = true
|
||||
|
||||
Reference in New Issue
Block a user