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); }