From 12b6ada71cf5c38e901a10a52080a0e2454455bf Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Tue, 15 Mar 2022 15:22:54 +0800 Subject: [PATCH] setter --- app/controller/api/Coupon.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index 4fd9186..76ea826 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -570,6 +570,12 @@ class Coupon extends Base $agencyMoney = (($deductionMoney/100) * $coupon->couponMain->commission_agency); $adminMoney = (($deductionMoney/100) * $coupon->couponMain->commission_admin); $consumerMoney = (($deductionMoney/100) * $coupon->couponMain->commission_consumer); + + $disAdminMoney = (($deductionMoney/100) * $coupon->couponMain->commission_dis_admin); + $disDistributionMoney = (($deductionMoney/100) * $coupon->couponMain->commission_dis_distribution); + $disDistributedMoney = (($deductionMoney/100) * $coupon->couponMain->commission_dis_distributed); + + $agencyMoney = round($agencyMoney,2); //四舍五入 精确到分 $adminMoney = round($adminMoney,2); //四舍五入 精确到分 $consumerMoney = round($consumerMoney,2); //四舍五入 精确到分