|
@@ -479,13 +479,14 @@ async function getShopItem(sessionId, itemId, token, deviceId, province, city, z
|
|
|
"accept-encoding": "gzip, deflate, br"
|
|
"accept-encoding": "gzip, deflate, br"
|
|
|
};
|
|
};
|
|
|
const body = '';
|
|
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 = {
|
|
let options = {
|
|
|
url: url,
|
|
url: url,
|
|
|
headers: headers,
|
|
headers: headers,
|
|
|
body: body
|
|
body: body
|
|
|
};
|
|
};
|
|
|
lk.log(url);
|
|
lk.log(url);
|
|
|
|
|
+ lk.log(`获取[${city + city}]门店库存:\n`);
|
|
|
lk.get(options, async (error, _response, data) => {
|
|
lk.get(options, async (error, _response, data) => {
|
|
|
let ret;
|
|
let ret;
|
|
|
lk.log(`data=${data}`);
|
|
lk.log(`data=${data}`);
|