From 741dd5e1b0120a494564459194510d46e5a8e858 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Mon, 20 Dec 2021 13:57:57 +0800 Subject: [PATCH] settter --- app/controller/api/Coupon.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index 767308e..abe3d79 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -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, "服务器错误"); }