shawenguan 1 년 전
부모
커밋
8589b902be
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      Scripts/imoutai/imoutaiHelper.js

+ 3 - 2
Scripts/imoutai/imoutaiHelper.js

@@ -637,8 +637,9 @@ function fliterShopByDistance(itemId, shops, lat, lng){
 
 // 获取产品信息
 function getProductInfo(productId, fieldName) {
-    for (const k in iMT_DynProducts) {
-        const { picUrl, title, price, count, itemId, inventory, areaLimitTag, areaLimit } = iMT_DynProducts[k];
+    let productInfo = iMT_DynProducts;
+    for (const k in productInfo) {
+        const { picUrl, title, price, count, itemId, inventory, areaLimitTag, areaLimit } = productInfo[k];
         if (productId === itemId) {
             return productInfo[k][fieldName];
         }