mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
【程序目录】处理自动取消订单时候的原订单状态问题
This commit is contained in:
parent
d7d4cdc69d
commit
c0cfd8a8a2
@ -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']]);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user