Browse Source

客户设置

shish 1 năm trước cách đây
mục cha
commit
88f756fb45
1 tập tin đã thay đổi với 2 bổ sung5 xóa
  1. 2 5
      app-ghs/controllers/CustomController.php

+ 2 - 5
app-ghs/controllers/CustomController.php

@@ -35,11 +35,8 @@ class CustomController extends BaseController
 
         $showStock = $post['showStock'] ?? 0;
         $arr = ['showStock' => $showStock];
-        $needCheck = $post['needCheck'] ?? 0;
-        if($needCheck == 1){
-            //如果新客需要审核,老的全部要打开为已经审核通过了
-            $arr['passStatus'] = 1;
-        }
+        //如果新客需要审核,老的全部要打开为已经审核通过了
+        $arr['passStatus'] = 1;
         CustomClass::updateByCondition(['ownShopId'=>$shopId], $arr);
         GhsClass::updateByCondition(['shopId'=>$shopId], $arr);