Преглед изворни кода

商户后台-订单列表-增加手动确认收货关单功能

sunxbiao пре 1 година
родитељ
комит
05ea3ea073
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/common/repositories/store/order/StoreOrderRepository.php

+ 1 - 1
app/common/repositories/store/order/StoreOrderRepository.php

@@ -3100,7 +3100,7 @@ class StoreOrderRepository extends BaseRepository
3100 3100
         Db::name("log")->insert(array('data' => '确认收货:' . json_encode($order)));//日志记录
3101 3101
         if (!$order)
3102 3102
             throw new ValidateException('订单不存在');
3103
-        if ($order['status'] != 1 || $order['order_type'])
3103
+        if (!in_array($order['status'], [0, 1]) || $order['order_type'])
3104 3104
             throw new ValidateException('订单状态有误');
3105 3105
         if (!$user) $user = $order->user;
3106 3106
         $order->status = 2;