增加了发放优惠卷

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
@@ -71,7 +71,7 @@ func CouponExpire(msg amqp091.Delivery) {
// 检测优惠卷过期时间
now := time.Now()
validEndTime := time.Time(coupon.ValidEndTime)
validEndTime := time.Time(*coupon.ValidEndTime)
diffTime := validEndTime.Sub(now)
if diffTime >= 60*time.Second {
// 重新添加入队列