setter
parent
67b37169a5
commit
4bc04b1e86
|
@ -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"]);
|
||||
|
|
|
@ -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"]);
|
||||
|
|
Loading…
Reference in New Issue