增加了发放优惠卷
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user