shish 5 tahun lalu
induk
melakukan
3319c0d71a

+ 1 - 1
app-ghs/controllers/ShopController.php

@@ -186,7 +186,7 @@ class ShopController extends BaseController
     public function actionToggleShop()
     {
         $shopId = Yii::$app->request->post('shopId', 0);
-        $res = AdminClass::toggleShop($this->admin, $shopId, $this->sjId, $this->shopAdmin);
+        $res = AdminClass::toggleShop($this->admin->attributes, $shopId, $this->sjId, $this->shopAdmin->attributes);
         util::success($res);
     }
 

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

@@ -78,7 +78,7 @@ class ShopController extends BaseController
     public function actionToggleShop()
     {
         $shopId = Yii::$app->request->post('shopId', 0);
-        $res = AdminClass::toggleShop($this->admin, $shopId, $this->sjId, $this->shopAdmin);
+        $res = AdminClass::toggleShop($this->admin->attributes, $shopId, $this->sjId, $this->shopAdmin->attributes);
         util::success($res);
     }
 

+ 4 - 4
common/config/params.php

@@ -86,7 +86,7 @@ if (getenv('YII_ENV') == 'local') {
     $config['mallImgHost'] = $prefixHttp . 'img.theflorist.cn/';
 
     $config['ossBucket'] = 'pic-hhb-cs';
-    //$config['dadaOnline']= false; //正式环境改为true
+
 }
 if (getenv('YII_ENV') == 'test') {
     $config['hdHost'] = $prefixHttp . 'api.shop.huaml.com';
@@ -108,7 +108,7 @@ if (getenv('YII_ENV') == 'test') {
     $config['mallImgHost'] = $prefixHttp . 'img.theflorist.cn/';
 
     $config['ossBucket'] = 'pic-hhb-cs';
-    //$config['dadaOnline']= false; //正式环境改为true
+
 }
 if (getenv('YII_ENV') == 'dev') {
     $config['hdHost'] = $prefixHttp . 'api.shop.huaml.com';
@@ -130,7 +130,7 @@ if (getenv('YII_ENV') == 'dev') {
     $config['mallImgHost'] = $prefixHttp . 'img.theflorist.cn/';
 
     $config['ossBucket'] = 'pic-hhb-cs';
-    //$config['dadaOnline']= false; //正式环境改为true
+
 }
 if (getenv('YII_ENV') == 'production') {
     $config['hdHost'] = $prefixHttp . 'api.shop.huahb.com';
@@ -152,6 +152,6 @@ if (getenv('YII_ENV') == 'production') {
     $config['mallImgHost'] = $prefixHttp . 'img.zhhinc.com/';
 
     $config['ossBucket'] = 'pic-hhb';
-    //$config['dadaOnline']= true; //正式环境改为true
+
 }
 return $config;