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

Function receive

jd_jump.js:348–366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346}
347
348async 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//获取活动信息
369async function getOneJumpInfo() {

Callers 1

jumpFunction · 0.70

Calls 4

getGetRequestFunction · 0.70
getMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected