发放优惠卷,增加过期队列时间处理1

This commit is contained in:
wucongxing8150 2024-06-11 17:23:34 +08:00
parent 3a0ebf9a36
commit 2f0906718e

View File

@ -214,7 +214,6 @@ func (r *CouponService) AddSystemCoupon(req requests.AddSystemCoupon) (bool, err
} }
t, err := time.ParseInLocation("2006-01-02 15:04:05", *req.ValidEndTime, location) t, err := time.ParseInLocation("2006-01-02 15:04:05", *req.ValidEndTime, location)
fmt.Println(t)
if err != nil { if err != nil {
tx.Rollback() tx.Rollback()
return false, errors.New("新增失败") return false, errors.New("新增失败")