|
@@ -119,8 +119,7 @@ class Order extends Base
|
|
|
|
|
|
if (empty($orderGoodsId)) {
|
|
|
$this->error('订单商品ID不能为空');
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
// 验证订单商品是否可以发货
|
|
|
$orderData = OrderService::validateOrderGoodsForDelivery($orderId, $orderGoodsId);
|
|
|
if (!$orderData) {
|
|
@@ -133,6 +132,7 @@ class Order extends Base
|
|
|
$expressName = trim($params['express_name'] ?? '');
|
|
|
$expressNo = trim($params['express_no'] ?? '');
|
|
|
$expressImage = $params['express_image'] ?? [];
|
|
|
+
|
|
|
// 事务处理
|
|
|
// 1. 更新订单商品发货状态
|
|
|
$result = OrderService::updateOrderGoodsDeliveryStatus($orderGoodsId, $expressName, $expressNo, $expressImage);
|