settter
parent
41340b8337
commit
741dd5e1b0
|
@ -374,7 +374,7 @@ class Coupon extends Base
|
|||
|
||||
|
||||
//可分配金额 如果是普通商家
|
||||
if($account->business["model"] == BusinessModel::model_ordinary) {
|
||||
if($business->model == BusinessModel::model_ordinary) {
|
||||
$deductionMoney = $coupon->couponMain->deduction_money;
|
||||
$agencyMoney = (($deductionMoney/100) * $coupon->couponMain->commission_agency);
|
||||
$adminMoney = (($deductionMoney/100) * $coupon->couponMain->commission_admin);
|
||||
|
@ -475,7 +475,6 @@ class Coupon extends Base
|
|||
Db::rollback();
|
||||
return $this->json(5001, "Repository服务器错误");
|
||||
}catch (\Exception $e){
|
||||
//echo $e->getMessage();
|
||||
Db::rollback();
|
||||
return $this->json(5002, "服务器错误");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue