yyds 2022-03-01 02:18:03 +08:00
parent 8519293f82
commit ad1a2930a0
1 changed files with 8 additions and 8 deletions

View File

@ -48,14 +48,14 @@ $.appId = "e395f"
$.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
return;
}
let res = await getAuthorShareCode('https://raw.githubusercontent.com/Aaron-lv/updateTeam/master/shareCodes/jxhb.json')
if (!res) {
$.http.get({url: 'https://purge.jsdelivr.net/gh/Aaron-lv/updateTeam@master/shareCodes/jxhb.json'}).then((resp) => {}).catch((e) => $.log('刷新CDN异常', e));
await $.wait(1000)
res = await getAuthorShareCode('https://cdn.jsdelivr.net/gh/Aaron-lv/updateTeam@master/shareCodes/jxhb.json')
}
if (res && res.activeId) $.activeId = res.activeId;
$.authorMyShareIds = [...((res && res.codes) || [])];
// let res = await getAuthorShareCode('https://raw.githubusercontent.com/Aaron-lv/updateTeam/master/shareCodes/jxhb.json')
// if (!res) {
// $.http.get({url: 'https://purge.jsdelivr.net/gh/Aaron-lv/updateTeam@master/shareCodes/jxhb.json'}).then((resp) => {}).catch((e) => $.log('刷新CDN异常', e));
// await $.wait(1000)
// res = await getAuthorShareCode('https://cdn.jsdelivr.net/gh/Aaron-lv/updateTeam@master/shareCodes/jxhb.json')
// }
// if (res && res.activeId) $.activeId = res.activeId;
// $.authorMyShareIds = [...((res && res.codes) || [])];
$.CryptoJS = $.isNode() ? require('crypto-js') : CryptoJS;
await requestAlgo()
await $.wait(1000)