diff --git a/app/common/repositories/store/order/StoreOrderRepository.php b/app/common/repositories/store/order/StoreOrderRepository.php index 9d013755..71daa897 100644 --- a/app/common/repositories/store/order/StoreOrderRepository.php +++ b/app/common/repositories/store/order/StoreOrderRepository.php @@ -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; }