master
wangxinglong 2022-01-20 14:09:20 +08:00
parent 67b37169a5
commit 4bc04b1e86
2 changed files with 4 additions and 4 deletions

View File

@ -627,8 +627,8 @@ class Coupon extends Base
$couponMain['create_time'] = date("Y-m-d H:i:s");
//保留两位小数
$couponMain['money'] = floor($couponMain['money'] * 100) / 100;
$totalMoney = $couponMain['money'] * $couponMain['count'];
$couponMain['deduction_money'] = floor($couponMain['deduction_money'] * 100) / 100;
$totalMoney = $couponMain['deduction_money'] * $couponMain['count'];
//未领取的优惠券
$NotClaimedMoney = CouponRepository::getInstance()->getBusinessNotClaimedCoupon($account->business["code"]);

View File

@ -224,9 +224,9 @@ class Coupon extends Base
}
//保留两位小数
$data['money'] = floor($data['money'] * 100) / 100;
$data['deduction_money'] = floor($data['deduction_money'] * 100) / 100;
$totalMoney = $data['money'] * $data['count'];
$totalMoney = $data['deduction_money'] * $data['count'];
//未领取的优惠券
$NotClaimedMoney = CouponRepository::getInstance()->getBusinessNotClaimedCoupon($business["code"]);