Compare commits

...

2 Commits

Author SHA1 Message Date
wangfuduo 9197cd10d9 fix: pkg check 2026-07-15 13:39:12 +08:00
wangfuduo cde3b97248 fix: pkg check 2026-07-15 13:38:44 +08:00
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)
}
}