1
This commit is contained in:
@@ -386,7 +386,7 @@ func (r *CouponService) PutSystemCoupon(couponId int64, req requests.PutSystemCo
|
||||
}
|
||||
|
||||
if &brandId != coupon.BrandId {
|
||||
couponData["brand_id"] = req.InquiryType
|
||||
couponData["brand_id"] = req.BrandId
|
||||
}
|
||||
}
|
||||
|
||||
@@ -408,7 +408,7 @@ func (r *CouponService) PutSystemCoupon(couponId int64, req requests.PutSystemCo
|
||||
if coupon.DistributionObject == 4 {
|
||||
if req.DistributionWithDay != nil {
|
||||
if *req.DistributionWithDay != coupon.DistributionWithDay {
|
||||
couponData["distribution_with_day"] = req.InquiryType
|
||||
couponData["distribution_with_day"] = req.DistributionWithDay
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -416,7 +416,7 @@ func (r *CouponService) PutSystemCoupon(couponId int64, req requests.PutSystemCo
|
||||
// 单商品最小可使用数量
|
||||
if coupon.ApplicationScope == 1 && coupon.CouponType == 3 {
|
||||
if req.MinUsableNumber != nil {
|
||||
couponData["min_usable_number"] = req.InquiryType
|
||||
couponData["min_usable_number"] = req.MinUsableNumber
|
||||
}
|
||||
}
|
||||
|
||||
@@ -428,14 +428,14 @@ func (r *CouponService) PutSystemCoupon(couponId int64, req requests.PutSystemCo
|
||||
return false, errors.New("发放数量,不可低于已发放数量")
|
||||
}
|
||||
|
||||
couponData["coupon_count"] = req.InquiryType
|
||||
couponData["coupon_count"] = req.CouponCount
|
||||
}
|
||||
}
|
||||
|
||||
// 优惠卷金额
|
||||
if req.CouponPrice != nil {
|
||||
if *req.CouponPrice != coupon.CouponPrice {
|
||||
couponData["coupon_price"] = req.InquiryType
|
||||
couponData["coupon_price"] = req.CouponPrice
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user