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;
|
$deductionMoney = $coupon->couponMain->deduction_money;
|
||||||
$agencyMoney = (($deductionMoney/100) * $coupon->couponMain->commission_agency);
|
$agencyMoney = (($deductionMoney/100) * $coupon->couponMain->commission_agency);
|
||||||
$adminMoney = (($deductionMoney/100) * $coupon->couponMain->commission_admin);
|
$adminMoney = (($deductionMoney/100) * $coupon->couponMain->commission_admin);
|
||||||
|
@ -475,7 +475,6 @@ class Coupon extends Base
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
return $this->json(5001, "Repository服务器错误");
|
return $this->json(5001, "Repository服务器错误");
|
||||||
}catch (\Exception $e){
|
}catch (\Exception $e){
|
||||||
//echo $e->getMessage();
|
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
return $this->json(5002, "服务器错误");
|
return $this->json(5002, "服务器错误");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue