Merge pull request '修改订单支付回调的错误' (#144) from hot_fix into master

Reviewed-on: #144
This commit is contained in:
mkm 2024-01-27 17:30:58 +08:00
commit 2b34014065

View File

@ -512,7 +512,9 @@ class StoreOrderRepository extends BaseRepository
$finance = (new CommissionDao())->firstOrderCommission($order, $finance, $financeSn . ($i++));
$addressCode = explode(',', $order['user_address_code']);
// "惠农供销,谱写数字新篇章"活动首单分润,镇合伙人
(new CommissionDao())->sendCommission($order, $addressCode[3], 3);
if (!empty($addressCode[3])) {
(new CommissionDao())->sendCommission($order, $addressCode[3], 3);
}
}
}
//分销判断