增加了发放优惠卷

This commit is contained in:
2024-08-13 08:51:24 +08:00
parent ca2f2c4421
commit 978dadf14e
8 changed files with 197 additions and 39 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func SystemCouponExpire() {
for _, coupon := range coupons {
// 计算过期时间
validEndTime := time.Time(coupon.ValidEndTime)
validEndTime := time.Time(*coupon.ValidEndTime)
delay := validEndTime.Sub(time.Now())
if delay < 5*time.Second {