修改了关联时间字段

This commit is contained in:
2024-08-08 17:24:02 +08:00
parent fc835fbc6d
commit b2c1f0ee44
25 changed files with 141 additions and 165 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func UserCouponExpire() {
for _, userCoupon := range userCoupons {
// 计算过期时间
validEndTime := time.Time(userCoupon.ValidEndTime)
validEndTime := time.Time(*userCoupon.ValidEndTime)
delay := validEndTime.Sub(time.Now())
if delay < 5*time.Second {
+1 -1
View File
@@ -19,7 +19,7 @@ func UserMemberExpire() {
for _, user := range users {
// 计算过期时间
validEndTime := user.MemberExpireDate
validEndTime := time.Time(*user.MemberExpireDate)
delay := validEndTime.Sub(time.Now())
if delay < 5*time.Second {