Browse Source

二维码

shish 1 năm trước cách đây
mục cha
commit
e5eeb0a4c5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app-hd/controllers/ItemController.php

+ 2 - 2
app-hd/controllers/ItemController.php

@@ -283,9 +283,9 @@ class ItemController extends BaseController
         $page = 'pages/item/detail';
         $ptStyle = dict::getDict('ptStyle', 'mall');
         $shop = $this->shop;
-        $lsShopId = $shop->lsShopId ?? 0;
+        $shopId = $shop->id ?? 0;
         //scene不能超过32个字条
-        $scene = "id=" . $id . '&a=' . $lsShopId;
+        $scene = "id=" . $id . '&a=' . $shopId;
         $miniCode = miniUtil::generateUnlimitedMiniCode($merchant, $page, $scene, $ptStyle);
         $miniCode = $miniCode . '?x-oss-process=image/resize,m_fill,h_200,w_200';
         $miniCodeBase64 = stringUtil::ossBase64($miniCode);