diff --git a/app/listener/paySuccessOrder.php b/app/listener/paySuccessOrder.php index c26a96fe..7b1d3f11 100644 --- a/app/listener/paySuccessOrder.php +++ b/app/listener/paySuccessOrder.php @@ -61,11 +61,11 @@ class paySuccessOrder 'order_sn' => $this->event['order']['order_sn'], 'user_info' => $this->event['order']->user->nickname, 'user_id' => $this->event['order']['uid'], - 'financial_type' => 'entry_merchant_commission', + 'financial_type' => 'commission_to_entry_merchant', 'financial_pm' => 1, 'type' => 1, 'number' => $merchantAmount, - 'mer_id' => $this->event['order']['mer_id'], + 'mer_id' => $entryMerId, 'financial_record_sn' => $this->financeSn . $this->index ]; $this->index++; @@ -121,11 +121,11 @@ class paySuccessOrder 'order_sn' => $this->event['order']['order_sn'], 'user_info' => $this->event['order']->user->nickname, 'user_id' => $this->event['order']['uid'], - 'financial_type' => $financialTypeMap[$field] . 'commission', + 'financial_type' => 'commission_to_' . $financialTypeMap[$field], 'financial_pm' => 1, 'type' => 1, 'number' => $amount, - 'mer_id' => $this->event['order']['mer_id'], + 'mer_id' => $merId, 'financial_record_sn' => $this->financeSn . $this->index ]; $this->index++;