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

Function main

jd_lotteryMachine.js:27–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25$.allShareId = {};
26main();
27async function main() {
28 await help();//先账号内部互助
29 await updateShareCodes();
30 if (!$.body) await updateShareCodesCDN();
31 if ($.body) {
32 eval($.body);
33 }
34 $.http.get({url: `https://purge.jsdelivr.net/gh/yangtingxiao/QuantumultX@master/scripts/jd/jd_lotteryMachine.js`}).then((resp) => {
35 if (resp.statusCode === 200) {
36 let { body } = resp;
37 body = JSON.parse(body);
38 if (body['success']) {
39 console.log(`jd_lotteryMachine.js文件 CDN刷新成功`)
40 } else {
41 console.log(`jd_lotteryMachine.js文件 CDN刷新失败`)
42 }
43 }
44 }).catch((err) => console.log(`更新jd_lotteryMachine.js文件 CDN异常`, err));
45}
46async function help() {
47 if (!cookiesArr[0]) {
48 $.msg($.name, '【提示】请先获取cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/', {"open-url": "https://bean.m.jd.com/"});

Callers 1

Calls 5

helpFunction · 0.70
updateShareCodesFunction · 0.70
updateShareCodesCDNFunction · 0.70
getMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected