KingRan 2022-03-18 08:41:32 +08:00
parent e28f783e72
commit d6d9b99b05
1 changed files with 14 additions and 10 deletions

View File

@ -277,16 +277,20 @@ async function doTask() {
const { data } = $.shopTaskListRes; const { data } = $.shopTaskListRes;
let goodShopListARR = [], moreShopListARR = [], shopList = []; let goodShopListARR = [], moreShopListARR = [], shopList = [];
const { goodShopList, moreShopList } = data; const { goodShopList, moreShopList } = data;
for (let i of goodShopList) { if (goodShopList) {
if (i.taskState === '2') { for (let i of goodShopList) {
goodShopListARR.push(i); if (i.taskState === '2') {
} goodShopListARR.push(i);
} }
for (let j of moreShopList) { }
if (j.taskState === '2') { }
moreShopListARR.push(j); if (moreShopList) {
} for (let j of moreShopList) {
} if (j.taskState === '2') {
moreShopListARR.push(j);
}
}
}
shopList = goodShopListARR.concat(moreShopListARR); shopList = goodShopListARR.concat(moreShopListARR);
for (let shop of shopList) { for (let shop of shopList) {
const { shopId, shopTaskId } = shop; const { shopId, shopTaskId } = shop;