shish 11 miesięcy temu
rodzic
commit
34c85d199f

+ 1 - 1
app-hd/controllers/IntraCityController.php

@@ -29,7 +29,7 @@ use biz\wx\classes\WxMessageClass;
 class IntraCityController extends BaseController
 {
     public $guestAccess = ['callback'];
-    public $useSandbox = true;//是否开启沙箱
+    public $useSandbox = false;//是否开启沙箱
 
     /**
      * 创建门店

+ 4 - 23
app-hd/controllers/OrderController.php

@@ -1017,8 +1017,8 @@ class OrderController extends BaseController
     public function actionList()
     {
         $get = Yii::$app->request->get();
-        $search = isset($get['searchText']) ? $get['searchText'] : '';
-        $searchType = isset($get['searchType']) && is_numeric($get['searchType']) ? $get['searchType'] : '';
+        $searchText = $get['searchText'] ?? '';
+        $searchStyle = $get['searchStyle'] ?? 0;
         $shopId = $this->shopId ?? 0;
         if (empty($shopId)) {
             //没有登录不显示数据
@@ -1047,27 +1047,8 @@ class OrderController extends BaseController
         if (!empty($get['shopAdminId'])) {
             $where['shopAdminId'] = $get['shopAdminId'];
         }
-        if (!empty($search)) {
-            if (is_numeric($searchType)) {
-                if ($searchType == 0) {
-                    $where['actPrice'] = $search;
-                } elseif ($searchType == 1) {
-                    $where['orderSn'] = $search;
-                } elseif ($searchType == 2) {
-                    $where['bookMobile'] = $search;
-                } elseif ($searchType == 3) {
-                    $where['customName'] = ['like', $search];
-                } else {
-                    $where['actPrice'] = $search;
-                }
-            } else {
-                //兼容旧版本
-                if (stringUtil::isMobile($search)) {
-                    $where['bookMobile'] = $search;
-                } else {
-                    $where['orderSn'] = strtoupper($search);
-                }
-            }
+        if ($searchStyle == 1) {
+            $where['sendNum'] = $searchText;
         }
         if (isset($get['repeat']) && $get['repeat'] > -1) {
             $where['repeat'] = $get['repeat'];