MCPcopy Create free account
hub / github.com/Semporia/Scripts / appPetTask

Function appPetTask

jd_joy.js:377–393  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

375 }
376}
377async function appPetTask() {
378 await appGetPetTaskConfig();
379 // console.log('$.appGetPetTaskConfigRes', $.appGetPetTaskConfigRes.success)
380 if ($.appGetPetTaskConfigRes.success) {
381 for (let item of $.appGetPetTaskConfigRes.datas) {
382 if (item['taskType'] === 'ScanMarket' && item['receiveStatus'] === 'chance_left') {
383 const scanMarketList = item.scanMarketList;
384 for (let scan of scanMarketList) {
385 if (!scan.status && scan.showDest === 'h5') {
386 const body = { marketLink: scan.marketLinkH5, taskType: 'ScanMarket', reqSource: 'h5' }
387 await appScanMarket('scan', body);
388 }
389 }
390 }
391 }
392 }
393}
394function getDeskGoodDetails() {
395 return new Promise(resolve => {
396 // const url = `${JD_API_HOST}/getDeskGoodDetails`;

Callers 1

jdJoyFunction · 0.85

Calls 2

appGetPetTaskConfigFunction · 0.85
appScanMarketFunction · 0.85

Tested by

no test coverage detected