shawenguan пре 1 година
родитељ
комит
5b72b7810a
1 измењених фајлова са 3 додато и 4 уклоњено
  1. 3 4
      Scripts/imoutai/imoutaiHelper.js

+ 3 - 4
Scripts/imoutai/imoutaiHelper.js

@@ -500,13 +500,12 @@ async function getShopItem(sessionId, itemId, token, deviceId, province, city, z
                             const rspData = jsonRetObj.data || {};
                             const shops = rspData.shops || [];
                             const shopIds = G_P_C_MAP[province][city];
-                            lk.log(`data=${JSON.stringify(shopIds)}`);
+                            // lk.log(`data=${JSON.stringify(shopIds)}`);
                             for (let i = 0; i < shops.length; i++) {
                                 const shopObj = shops[i];
-                                lk.log(`###${i}###shopId=${shopObj.shopId}`);
-                                lk.log(`${itemId} ${JSON.stringify(shopObj)}`);
                                 if(shopIds.indexOf(shopObj.shopId) > -1){
-                                    if (shopObj.shopId && shopObj.shopId.indexOf(itemId) > -1) {
+                                    if (shopObj.itemId == itemId) {
+                                        lk.log(`shopObj=${JSON.stringify(shopObj)}`);
                                         ret = shopObj.shopId;
                                         break;
                                     }