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

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

@@ -23,8 +23,9 @@ class PublicController extends baseController
     public function beforeAction($action)
     {
         $this->version = '1.0.0';
-        $header = httpUtil::getHeader();
-        $account = isset($header['account']) ? $header['account'] : 0;
+        //$header = httpUtil::getHeader();
+        //$account = isset($header['account']) ? $header['account'] : 0;
+        $account = Yii::$app->request->get('account', 0);
         $this->shopId = $account;
         $this->sjWx = WxOpenClass::getMallWxInfo();
         Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'mall');