fix: pkg check

This commit is contained in:
wangfuduo 2026-07-15 13:38:44 +08:00
parent d92607d816
commit cde3b97248
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}