【程序目录】处理自动取消订单时候的原订单状态问题

This commit is contained in:
From-wh 2023-02-17 12:18:22 +08:00
parent d7d4cdc69d
commit c0cfd8a8a2

View File

@ -998,8 +998,6 @@ class StoreOrderRefundServices extends BaseServices
$res4 = $res4 && $storeOrderCartInfoServices->update(['oid' => $id, 'cart_id' => $cart['cart_id']], ['refund_num' => (($cartInfo[$cart['cart_id']]['refund_num'] ?? 0) + $cart['cart_num'])]);
}
} else {
//修改原订单状态
$res2 = false !== $orderServices->update(['id' => $order['id']], ['refund_status' => 1]);
foreach ($cartInfos as $cart) {
$res4 = $res4 && $storeOrderCartInfoServices->update(['oid' => $id, 'cart_id' => $cart['cart_id']], ['refund_num' => $cart['cart_num']]);
}