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

Function doAppTask

jd_necklace.js:351–381  ·  view source on GitHub ↗
(type = '3', id)

Source from the content-addressed store, hash-verified

349}
350
351async function doAppTask(type = '3', id) {
352 let body = {
353 "pageClickKey": "CouponCenter",
354 "childActivityUrl": "openapp.jdmobile%3a%2f%2fvirtual%3fparams%3d%7b%5c%22category%5c%22%3a%5c%22jump%5c%22%2c%5c%22des%5c%22%3a%5c%22couponCenter%5c%22%7d",
355 "lat": "",
356 "globalLat": "",
357 "lng": "",
358 "globalLng": ""
359 }
360 await getCcTaskList('getCcTaskList', body, type);
361 body = {
362 "globalLng": "",
363 "globalLat": "",
364 "monitorSource": "ccgroup_ios_index_task",
365 "monitorRefer": "",
366 "taskType": "2",
367 "childActivityUrl": "openapp.jdmobile%3a%2f%2fvirtual%3fparams%3d%7b%5c%22category%5c%22%3a%5c%22jump%5c%22%2c%5c%22des%5c%22%3a%5c%22couponCenter%5c%22%7d",
368 "pageClickKey": "CouponCenter",
369 "lat": "",
370 "taskId": "necklace_" + id,
371 "lng": "",
372 }
373 if (type === '4') {
374 console.log('需等待30秒')
375 await $.wait(15000);
376 } else {
377 console.log('需等待15秒')
378 }
379 await $.wait(15500);
380 await getCcTaskList('reportCcTask', body, type);
381}
382function getCcTaskList(functionId, body, type = '3') {
383 let url = '';
384 return new Promise(resolve => {

Callers 1

reportTaskFunction · 0.70

Calls 3

getCcTaskListFunction · 0.70
logMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected