소스 검색

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

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;