mirror of https://github.com/KingRan/KR.git
parent
e28f783e72
commit
d6d9b99b05
|
@ -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;
|
||||||
|
if (goodShopList) {
|
||||||
for (let i of goodShopList) {
|
for (let i of goodShopList) {
|
||||||
if (i.taskState === '2') {
|
if (i.taskState === '2') {
|
||||||
goodShopListARR.push(i);
|
goodShopListARR.push(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (moreShopList) {
|
||||||
for (let j of moreShopList) {
|
for (let j of moreShopList) {
|
||||||
if (j.taskState === '2') {
|
if (j.taskState === '2') {
|
||||||
moreShopListARR.push(j);
|
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;
|
||||||
|
|
Loading…
Reference in New Issue