()
| 326 | |
| 327 | //获取任务列表 |
| 328 | async function getTaskList() { |
| 329 | const myRequest = getGetRequest('getTools', `activityId=${$.jumpId}&reqSource=h5`); |
| 330 | return new Promise(async resolve => { |
| 331 | $.get(myRequest, (err, resp, data) => { |
| 332 | try { |
| 333 | if (data) { |
| 334 | data = JSON.parse(data); |
| 335 | if (data.success === true) { |
| 336 | $.taskList = data.datas; |
| 337 | } |
| 338 | } |
| 339 | } catch (e) { |
| 340 | $.logErr(e, resp) |
| 341 | } finally { |
| 342 | resolve(); |
| 343 | } |
| 344 | }) |
| 345 | }) |
| 346 | } |
| 347 | |
| 348 | async function receive() { |
| 349 | const myRequest = getGetRequest('receive', `activityId=${$.jumpId}`); |
no test coverage detected