shish 2 months ago
parent
commit
85d23bdc0b

+ 1 - 1
app-ghs/controllers/ConsoleController.php

@@ -222,7 +222,7 @@ class ConsoleController extends BaseController
         ];
         if ($version == 2) {
             $menu = [
-                ["name" => "商城", "img" => "ghs/home/shop3.png", "url" => "/admin/home/mall"],
+                ["name" => "商城", "img" => "ghs/home/shop3.png", "url" => "/admin/home/mall"],
                 ["name" => "改价", "img" => "ghs/home/gj.png", "url" => "/admin/changePrice/list2"],
                 ["name" => "花材", "img" => "ghs/home/hcgl.png", "url" => "/admin/item/list2"],
                 ["name" => "配送片区", "img" => "ghs/home/kcyjs.png", "url" => "/admin/order/orderListByDist"],

+ 2 - 1
app-hd/controllers/MainController.php

@@ -173,7 +173,8 @@ class MainController extends BaseController
         $scene = 'a=' . $this->shopAdminId . '&s=' . $this->shopId;
 
         $flowerPage = 'pages/item/item';
-        $flowerImgUrl = miniUtil::generateUnlimitedMiniCode($merchant, $flowerPage, $scene, $ptStyle);
+        $envVersion = miniUtil::normalizeMiniEnvVersion(Yii::$app->request->get('env_version', 'release'));
+        $flowerImgUrl = miniUtil::generateUnlimitedMiniCode($merchant, $flowerPage, $scene, $ptStyle, $envVersion);
 
         $sjName = $shop->merchantName ?? '';
         $shopName = $shop->shopName ?? '';