更新订单详情状态
This commit is contained in:
parent
787c917d82
commit
8dc64d5832
@ -638,6 +638,25 @@ class StoreOrderRepository extends BaseRepository
|
||||
$order->presell_price = $order->pay_price;
|
||||
}
|
||||
}
|
||||
$order->order_status = 0;
|
||||
if ($order->paid == 0) {
|
||||
$order->order_status = 1;
|
||||
}
|
||||
if ($order->paid == 1 && $order->status == 0) {
|
||||
$order->order_status = 2;
|
||||
}
|
||||
if ($order->status == 1) {
|
||||
$order->order_status = 3;
|
||||
}
|
||||
if ($order->status == 2) {
|
||||
$order->order_status = 4;
|
||||
}
|
||||
if ($order->status == 3) {
|
||||
$order->order_status = 5;
|
||||
}
|
||||
if ($order->status == -1) {
|
||||
$order->order_status = 6;
|
||||
}
|
||||
return $order;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user