shish 5 лет назад
Родитель
Сommit
afdb1ebc4d
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      app-mall/controllers/BaseController.php

+ 3 - 2
app-mall/controllers/BaseController.php

@@ -41,8 +41,9 @@ class BaseController extends PublicController
         $this->user = $user;
         $this->isWx = util::isWx();
 
-        $header = httpUtil::getHeader();
-        $shopId = isset($header['account']) ? $header['account'] : 0;
+        //$header = httpUtil::getHeader();
+        //$shopId = isset($header['account']) ? $header['account'] : 0;
+        $shopId = Yii::$app->request->get('account', 0);
         $this->shopId = $shopId;
         if (!empty($shopId)) {
             $shop = ShopClass::getById($shopId, true);