From 30aa2e2e98ad8b493e65be96d872d030a915c2c6 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Fri, 26 May 2023 10:04:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E5=B9=B3=E5=8F=B0=E6=89=8B?= =?UTF-8?q?=E7=BB=AD=E8=B4=B9=E5=88=86=E6=B6=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/listener/paySuccessOrder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/listener/paySuccessOrder.php b/app/listener/paySuccessOrder.php index 5530d9b0..afb5c0a2 100644 --- a/app/listener/paySuccessOrder.php +++ b/app/listener/paySuccessOrder.php @@ -52,7 +52,7 @@ class paySuccessOrder //入口商户佣金 $entryMerId = $item['source_id']; $entryMerchant = app()->make(MerchantDao::class)->get($entryMerId); - if ($entryMerchant == Merchant::TypeStore) { + if ($entryMerchant['type_id'] == Merchant::TypeStore) { $merchantRate = systemConfig('commission_to_merchant_rate'); $merchantAmount = bcmul($this->totalAmount, (string)($merchantRate / 100), 2); /** @var MerchantRepository $merchantRepo */