shawenguan 1 год назад
Родитель
Сommit
9c2f77621d
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Scripts/imoutai/imoutaiHelper.js

+ 2 - 1
Scripts/imoutai/imoutaiHelper.js

@@ -479,13 +479,14 @@ async function getShopItem(sessionId, itemId, token, deviceId, province, city, z
                 "accept-encoding": "gzip, deflate, br"
             };
             const body = '';
-            const url = `https://static.moutai519.com.cn/mt-backend/xhr/front/mall/shop/list/slim/v3/${sessionId}/${province}/${city}/${zeroTimeStamp}`;
+            const url = `https://static.moutai519.com.cn/mt-backend/xhr/front/mall/shop/list/slim/v3/${sessionId}/${encodeURIComponent(province)}/${itemId}/${zeroTimeStamp}`;
             let options = {
                 url: url,
                 headers: headers,
                 body: body
             };
             lk.log(url);
+            lk.log(`获取[${city + city}]门店库存:\n`);
             lk.get(options, async (error, _response, data) => {
                 let ret;
                 lk.log(`data=${data}`);