|
@@ -133,7 +133,7 @@ class Order extends Base
|
|
$expressName = trim($params['express_name'] ?? '');
|
|
$expressName = trim($params['express_name'] ?? '');
|
|
$expressNo = trim($params['express_no'] ?? '');
|
|
$expressNo = trim($params['express_no'] ?? '');
|
|
$expressImage = $params['express_image'] ?? [];
|
|
$expressImage = $params['express_image'] ?? [];
|
|
-
|
|
|
|
|
|
+ // 事务处理
|
|
// 1. 更新订单商品发货状态
|
|
// 1. 更新订单商品发货状态
|
|
$result = OrderService::updateOrderGoodsDeliveryStatus($orderGoodsId, $expressName, $expressNo, $expressImage);
|
|
$result = OrderService::updateOrderGoodsDeliveryStatus($orderGoodsId, $expressName, $expressNo, $expressImage);
|
|
if (!$result) {
|
|
if (!$result) {
|
|
@@ -141,7 +141,7 @@ class Order extends Base
|
|
}
|
|
}
|
|
|
|
|
|
// 2. 检查并更新订单状态
|
|
// 2. 检查并更新订单状态
|
|
- OrderService::updateOrderStatusByDeliveryResult($orderId, $userId);
|
|
|
|
|
|
+ OrderService::updateOrderStatusByDeliveryResult($orderId);
|
|
|
|
|
|
// 3. 记录操作日志
|
|
// 3. 记录操作日志
|
|
$orderActionService = new OrderActionService();
|
|
$orderActionService = new OrderActionService();
|