shish 2 年 前
コミット
843ba78236
1 ファイル変更3 行追加5 行削除
  1. 3 5
      app-ghs/controllers/CheckOrderController.php

+ 3 - 5
app-ghs/controllers/CheckOrderController.php

@@ -204,10 +204,8 @@ class CheckOrderController extends BaseController
         ini_set('memory_limit', '2045M');
         set_time_limit(0);
         $staff = $this->shopAdmin;
-        if ($staff->mobile != '15280215347') {
-            if ($staff->founder == 1) {
-                util::fail('不能清空');
-            }
+        if ($staff->mobile != '15280215347' && $staff->founder == 1) {
+            util::fail('不能清空');
         }
         $mainId = $this->mainId ?? 0;
         $adminId = $this->adminId ?? 0;
@@ -223,7 +221,7 @@ class CheckOrderController extends BaseController
                 }
             }
         }
-        if(empty($productList)){
+        if (empty($productList)) {
             util::fail('没有花材需要清空');
         }
         $modifyData = [