fix: pkg check
This commit is contained in:
parent
d92607d816
commit
cde3b97248
|
|
@ -173,7 +173,7 @@ func (u *User) expireCheck(userPkg *model.UserPkgInfo, day int) *response.Respon
|
|||
panic(config.ErrDb.New().Append(err))
|
||||
}
|
||||
// 3. 如果都不可用,则提示联系客服
|
||||
if pkg == nil {
|
||||
if pkg == nil || pkg.ExpireTime < time.Now().Unix() {
|
||||
return u.resp(config.NoPkg, config.ServiceContactCustomer).Closable(false)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue