|
|
@@ -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;
|
|
|
}
|