From e8dfbec97062922c4355bc1114fa242129b3c0cd Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 27 Sep 2023 20:40:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/merchant/Merchant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/store/merchant/Merchant.php b/app/controller/api/store/merchant/Merchant.php index 826a6831..4acf62db 100644 --- a/app/controller/api/store/merchant/Merchant.php +++ b/app/controller/api/store/merchant/Merchant.php @@ -269,7 +269,7 @@ class Merchant extends BaseController return app('json')->fail('参数错误'); } $margin = Db::name('MerchantType')->where('mer_type_id', $merchantInfo['type_id'])->value('margin'); - $merchantInfo['unpaid_margin'] = bcsub($margin,$merchantInfo['paid_margin']); + $merchantInfo['unpaid_margin'] = bcsub($margin,$merchantInfo['paid_margin'],2); if($merchantInfo['margin']==0){ $merchantInfo['margin']=$merchantInfo['unpaid_margin']; }