修改文件app/services/order/StoreOrderServices.php中第765行的updateOrder方法
增加红框内代码
if (sys_config('user_brokerage_type') == 1) {
$percent = bcdiv((string)$data['pay_price'], (string)$order['pay_price'], 6);
if ($order['one_brokerage'] > 0) {
$data['one_brokerage'] = bcmul((string)$order['one_brokerage'], $percent, 2);
}
if ($order['two_brokerage'] > 0) {
$data['two_brokerage'] = bcmul((string)$order['two_brokerage'], $percent, 2);
}
}