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