shish 5 rokov pred
rodič
commit
afdb1ebc4d
1 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  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);