Explorar el Código

允许客户查看订单

shish hace 3 años
padre
commit
85afa6d59f
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      app-ghs/controllers/OrderController.php

+ 3 - 1
app-ghs/controllers/OrderController.php

@@ -1062,7 +1062,9 @@ class OrderController extends BaseController
         $get = Yii::$app->request->get();
         $id = $get['id'] ?? 0;
         $info = OrderService::getOrderInfo($id, true, true, true, false);
-        OrderClass::valid($info, $this->shopId);
+        if (empty($info)) {
+            util::fail('没有找到订单');
+        }
 
         //是否有云打印判断
         $hasCloudPrint = 0;