添加购物卡自动发货
This commit is contained in:
parent
c0cd366469
commit
1a5a44e3a6
@ -409,6 +409,18 @@ class StoreOrderRepository extends BaseRepository
|
||||
], $order->mer_id);
|
||||
//自动打印订单
|
||||
$this->autoPrinter($order->order_id, $order->mer_id);
|
||||
|
||||
if ($order->orderProduct[0]->product->isPlatformCard()) {
|
||||
//购物卡自动发货
|
||||
$deliveryData = [
|
||||
'delivery_type' => 3,
|
||||
'remark' => '',
|
||||
'delivery_name' => '',
|
||||
'delivery_id' => '',
|
||||
];
|
||||
$this->runDelivery($order['order_id'], $order['mer_id'], $deliveryData, ['is_split' => 0, 'split' => []], 'delivery');
|
||||
}
|
||||
|
||||
}
|
||||
if ($groupOrder->user->spread_uid) {
|
||||
Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->user->spread_uid, 'type' => 'spread_pay_num', 'inc' => 1]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user