6
0
Fork 0

order-pack

release
panliang 2022-05-19 17:52:39 +08:00
parent 822f64fee9
commit c2b0f883d5
1 changed files with 4 additions and 1 deletions

View File

@ -81,11 +81,14 @@ class OrderPackage
} }
// 发货 // 发货
if (count($package_params) > 0) { if (count($package_params) > 0) {
$service_package->createPackage($order, [ $package = $service_package->createPackage($order, [
'shipping_company' => '提货', 'shipping_company' => '提货',
'shipping_number' => '0', 'shipping_number' => '0',
'packages' => $package_params 'packages' => $package_params
]); ]);
$package->update([
'inviter_id' => $order->inviter_id
]);
} }
DB::commit(); DB::commit();
} catch (Throwable $th) { } catch (Throwable $th) {