From ee14e7c5fb35bad522b0a70e19d0dde00e510be2 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Fri, 26 May 2023 13:54:35 +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 | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/app/listener/paySuccessOrder.php b/app/listener/paySuccessOrder.php index d65986e1..1304d989 100644 --- a/app/listener/paySuccessOrder.php +++ b/app/listener/paySuccessOrder.php @@ -97,22 +97,22 @@ class paySuccessOrder //云仓佣金 $this->calculate(Merchant::TypeCloudWarehouse, 'commission_to_cloud_rate'); - - //平台佣金 - $this->finance[] = [ - 'order_id' => $this->event['order']['order_id'], - 'order_sn' => $this->event['order']['order_sn'], - 'user_info' => $this->event['order']->user->nickname, - 'user_id' => $this->event['order']['uid'], - 'financial_type' => 'commission_to_platform', - 'financial_pm' => 1, - 'type' => 1, - 'number' => $this->remain, - 'mer_id' => 0, - 'financial_record_sn' => $this->financeSn . $this->index - ]; } + //平台佣金 + $this->finance[] = [ + 'order_id' => $this->event['order']['order_id'], + 'order_sn' => $this->event['order']['order_sn'], + 'user_info' => $this->event['order']->user->nickname, + 'user_id' => $this->event['order']['uid'], + 'financial_type' => 'commission_to_platform', + 'financial_pm' => 1, + 'type' => 1, + 'number' => $this->remain, + 'mer_id' => 0, + 'financial_record_sn' => $this->financeSn . $this->index + ]; + $financialRecordRepository->insertAll($this->finance); }