diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index 9376a43..66ab6de 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -611,7 +611,7 @@ class Coupon extends Base if( $business->is_assign == BusinessModel::COMMON_OFF || - (!empty($coupon->distribution_user_code)&&$business->is_assign == BusinessModel::COMMON_ON) + (!empty($coupon->distribution_user_code)&&$coupon->is_distribution_coupon == CouponMain::COMMON_ON) ){ $disAdminMoney = (($deductionMoney/100) * $coupon->couponMain->commission_dis_admin); //$disDistributionMoney = (($deductionMoney/100) * $coupon->couponMain->commission_dis_distribution);