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

Function getOneJumpInfo

jd_jump.js:369–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367
368//获取活动信息
369async function getOneJumpInfo() {
370 const myRequest = getGetRequest('getHomeInfo', `activityId=${$.jumpId}`);
371 return new Promise(async resolve => {
372 $.get(myRequest, (err, resp, data) => {
373 try {
374 if (data) {
375 data = JSON.parse(data);
376 if (data.success === true) {
377 $.oneJumpInfo = data.data;
378 //console.log(JSON.stringify($.oneJumpInfo))
379 }
380 }
381 } catch (e) {
382 $.logErr(e, resp)
383 } finally {
384 resolve();
385 }
386 })
387 })
388}
389
390//获取活动列表
391async function getGameList() {

Callers 1

jumpFunction · 0.85

Calls 3

getGetRequestFunction · 0.70
getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected