()
| 346 | } |
| 347 | |
| 348 | async function receive() { |
| 349 | const myRequest = getGetRequest('receive', `activityId=${$.jumpId}`); |
| 350 | return new Promise(async resolve => { |
| 351 | $.get(myRequest, (err, resp, data) => { |
| 352 | try { |
| 353 | if (data) { |
| 354 | data = JSON.parse(data); |
| 355 | if (data.success === true) { |
| 356 | console.log(`瓜分成功`) |
| 357 | } |
| 358 | } |
| 359 | } catch (e) { |
| 360 | $.logErr(e, resp) |
| 361 | } finally { |
| 362 | resolve(); |
| 363 | } |
| 364 | }) |
| 365 | }) |
| 366 | } |
| 367 | |
| 368 | //获取活动信息 |
| 369 | async function getOneJumpInfo() { |
no test coverage detected