shish il y a 3 ans
Parent
commit
64d657974f
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      app-hd/controllers/ShopController.php

+ 3 - 1
app-hd/controllers/ShopController.php

@@ -64,7 +64,9 @@ class ShopController extends BaseController
     //是否开启完整功能 ssh 20230226
     public function actionChangeOnlyCg()
     {
-        util::fail('操作失败');
+        if (getenv('YII_ENV') == 'production') {
+            util::fail('操作失败');
+        }
         $shop = $this->shop;
         $get = Yii::$app->request->get();
         $onlyCg = $get['onlyCg'] ?? 1;