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

Function getGameList

jd_jump.js:391–409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

389
390//获取活动列表
391async function getGameList() {
392 const myRequest = getGetRequest('getGameList', 'pageSize=8&pageNum=1');
393 return new Promise(async resolve => {
394 $.get(myRequest, (err, resp, data) => {
395 try {
396 if (data) {
397 data = JSON.parse(data);
398 if (data.success === true) {
399 $.jumpList = data.datas;
400 }
401 }
402 } catch (e) {
403 $.logErr(e, resp)
404 } finally {
405 resolve();
406 }
407 })
408 })
409}
410
411
412function getGetRequest(type, body) {

Callers 1

jumpFunction · 0.85

Calls 3

getGetRequestFunction · 0.70
getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected