diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index b5677fb..9376a43 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -371,7 +371,7 @@ class Coupon extends Base $deductionAmount = (($couponMain->deduction_money / 100) * $couponMain->commission_dis_distribution); //是否开启分销 并且有分销人 给分销人发红包 - if($couponMain->is_distribution == CouponMain::COMMON_ON && !empty($distributionUserCode)) + if($couponMain->business->is_assign == BusinessModel::COMMON_ON && !empty($distributionUserCode)) { // 2. 写入优惠券流水