From 2f25988aff5a73100bfce4f5c633a22e96cde490 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 28 Sep 2023 16:05:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=B6=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../store/order/StoreOrderRepository.php | 2 +- app/listener/paySuccessOrder.php | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/common/repositories/store/order/StoreOrderRepository.php b/app/common/repositories/store/order/StoreOrderRepository.php index 287cb5b2..e822e3a3 100644 --- a/app/common/repositories/store/order/StoreOrderRepository.php +++ b/app/common/repositories/store/order/StoreOrderRepository.php @@ -326,7 +326,7 @@ class StoreOrderRepository extends BaseRepository $_payPrice = bcsub($_payPrice, $_order_rate, 2); // 结算各镇 小组佣金 - // event('order.paySuccessOrder', compact('order','_order_rate')); + event('order.paySuccessOrder', compact('order','_order_rate')); } diff --git a/app/listener/paySuccessOrder.php b/app/listener/paySuccessOrder.php index 3f12f4bc..1d152951 100644 --- a/app/listener/paySuccessOrder.php +++ b/app/listener/paySuccessOrder.php @@ -47,16 +47,16 @@ class paySuccessOrder $this->totalAmount = bcmul($realPrice, (string)$commission_rate, 2); $this->remain = $this->totalAmount; - $typeTownServerId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeTownServer'])->value('mer_type_id'); - $typeVillageServerId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeVillageServer'])->value('mer_type_id'); - $typeTeamServerId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeTeamServer'])->value('mer_type_id'); + // $typeTownServerId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeTownServer'])->value('mer_type_id'); + // $typeVillageServerId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeVillageServer'])->value('mer_type_id'); + // $typeTeamServerId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeTeamServer'])->value('mer_type_id'); - //镇团队佣金 - $this->calculate($typeTownServerId, 'commission_to_town_rate'); - //村团队佣金 - $this->calculate($typeVillageServerId, 'commission_to_village_rate'); - //小组服务团队佣金 - $this->calculate($typeTeamServerId, 'commission_to_service_team_rate'); + // //镇团队佣金 + // $this->calculate($typeTownServerId, 'commission_to_town_rate'); + // //村团队佣金 + // $this->calculate($typeVillageServerId, 'commission_to_village_rate'); + // //小组服务团队佣金 + // $this->calculate($typeTeamServerId, 'commission_to_service_team_rate'); //订单购物详情表是否有云仓数据 $orderProduct = Db::name('store_order_product')