fix: pkg check

This commit is contained in:
wangfuduo 2026-07-15 13:39:12 +08:00
parent cde3b97248
commit 9197cd10d9
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)) panic(config.ErrDb.New().Append(err))
} }
// 3. 如果都不可用,则提示联系客服 // 3. 如果都不可用,则提示联系客服
if pkg == nil || pkg.ExpireTime < time.Now().Unix() { if pkg == nil || pkg.ExpireTime <= time.Now().Unix() {
return u.resp(config.NoPkg, config.ServiceContactCustomer).Closable(false) return u.resp(config.NoPkg, config.ServiceContactCustomer).Closable(false)
} }
} }