master
wangxinglong 2021-12-20 13:57:57 +08:00
parent 41340b8337
commit 741dd5e1b0
1 changed files with 1 additions and 2 deletions

View File

@ -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, "服务器错误");
}