|
|
@@ -95,15 +95,13 @@ async function main() {
|
|
|
value: `${province}${city}`,
|
|
|
},
|
|
|
];
|
|
|
- lk.log("#############1");
|
|
|
for(let i=0; i < itemCodes.length;i++){
|
|
|
const itemId = itemCodes[i];
|
|
|
- lk.log("#############2");
|
|
|
let maxShopId = await getShopItem(sessionId,itemId,userData.token,userData.deviceId,province,city,zeroTimeStamp);
|
|
|
if(maxShopId == '0'){
|
|
|
continue;
|
|
|
}
|
|
|
- lk.log("#############3");
|
|
|
+ lk.log(`maxShopId=${maxShopId}`);
|
|
|
let retMsg = await mtAdd(sessionId,itemId,maxShopId,userData.userId,userData.token,userData.deviceId);
|
|
|
if (retMsg) {
|
|
|
msgItems.push({
|
|
|
@@ -354,6 +352,7 @@ async function mtAdd(sessionId, itemId, shopId, userId, token, deviceId) {
|
|
|
|
|
|
const actParam = await getActParam(d);
|
|
|
d['actParam'] = actParam;
|
|
|
+ lk.log(`actParam=${actParam}`);
|
|
|
return new Promise((resolve, _reject) => {
|
|
|
try {
|
|
|
const body = JSON.stringify(d);
|
|
|
@@ -369,6 +368,7 @@ async function mtAdd(sessionId, itemId, shopId, userId, token, deviceId) {
|
|
|
if (error) {
|
|
|
lk.execFail();
|
|
|
} else {
|
|
|
+ lk.log(data);
|
|
|
const jsonRetObj = JSON.parse(data);
|
|
|
if (jsonRetObj.code == 2000) {
|
|
|
ret = jsonRetObj.data?.successDesc || "未知";
|