shish 11 months ago
parent
commit
a92ca7df33
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app-mall/controllers/BaseController.php

+ 5 - 1
app-mall/controllers/BaseController.php

@@ -46,6 +46,10 @@ class BaseController extends PublicController
         }
         $this->user = $user;
         $shopId = Yii::$app->request->get('account', 0);
+        if(empty($shopId)){
+            //兼容早期代码,勿删,扫码付款页也用到
+            $shopId = Yii::$app->request->post('account', 0);
+        }
         if (!empty($shopId)) {
             $this->shopId = $shopId;
             $shop = ShopClass::getById($shopId, true);
@@ -57,7 +61,7 @@ class BaseController extends PublicController
                 $this->mainId = $mainId;
                 $hdId = Yii::$app->request->get('hdId', 0);
                 if (empty($hdId)) {
-                    //兼容早期代码只写POST方式
+                    //兼容早期代码,勿删,扫码付款页也用到,只写POST方式
                     $hdId = Yii::$app->request->post('hdId', 0);
                 }
                 if (!empty($hdId)) {