多商戶php, order表我新增了extension_three三級返傭,和三級反傭用戶id(top_top_uid),在 paySuccess
? 方法中我增加了以下條件,但在支付成功后,第三級傭金并沒有傭金沒有寫入數(shù)據(jù)庫,只有一級和二級是正常的
if ($order['extension_three'] > 0) {
$finance[] = [
'order_id' => $order->order_id,
'order_sn' => $order->order_sn,
'user_info' => $groupOrder->user->nickname,
'user_id' => $uid,
'financial_type' => 'brokerage_three',
'financial_pm' => 0,
'type' => 1,
'number' => $order['extension_three'],
'mer_id' => $order->mer_id,
'financial_record_sn' => $financeSn . ($i++)
];
}