(type = '3', id)
| 349 | } |
| 350 | |
| 351 | async 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 | } |
| 382 | function getCcTaskList(functionId, body, type = '3') { |
| 383 | let url = ''; |
| 384 | return new Promise(resolve => { |
no test coverage detected