更新委托订单支付处理
This commit is contained in:
parent
14068ab280
commit
66bf2a3e72
@ -249,6 +249,17 @@ class StoreOrderRepository extends BaseRepository
|
||||
//更新助力状态
|
||||
app()->make(ProductAssistSetRepository::class)->changStatus($order->orderProduct[0]['activity_id']);
|
||||
}
|
||||
|
||||
//更新委托订单处理
|
||||
if ($order->activity_type == 99) {
|
||||
$cartIdArray = explode(',', $order->cart_id);
|
||||
$cartList = Db::name('store_cart')->whereIn('cart_id', $cartIdArray)->select();
|
||||
foreach($cartList as $cart) {
|
||||
if (!empty($cart['source_id'])) {
|
||||
Db::name('community')->whereIn('community_id', $cart['source_id'])->update(['entrust_order_id' => $order->order_id ?? 0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
// 订单的类型 0 发货 1 自提
|
||||
if ($order->order_type == 1 && $order->status != 10)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user