shish 5 жил өмнө
parent
commit
3228dd1fb6

+ 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');