调试平台手续费分润

This commit is contained in:
luofei 2023-05-26 13:54:35 +08:00
parent 246541b9d7
commit ee14e7c5fb

View File

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