Skip to content

Commit

Permalink
Update jd_computer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ca11back authored Jan 7, 2022
1 parent 1fc0e72 commit 66a0505
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jd_computer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if (!["card","car"].includes(process.env.FS_LEVEL)) {
export computer_activityId="16"
即时任务,无需cron
cron 0 0 * * * jd_computer.js
*/

const $ = new Env('电脑配件');
Expand Down Expand Up @@ -42,9 +43,9 @@ $.outFlag = 0
}
if (!activityIdList) {
$.log(`没有电脑配件ID,尝试获取远程`);
let data = await getData("https://raw.githubusercontent.com/Ca11back/scf-experiment/master/json/computer.json")
let data = await getData("https://raw.githubusercontent.com/Ca11back/scf-experiment/master/json/computer3.json")
if (!data) {
data = await getData("https://raw.fastgit.org/Ca11back/scf-experiment/master/json/computer.json")
data = await getData("https://raw.fastgit.org/Ca11back/scf-experiment/master/json/computer3.json")
}
if (data && data.length) {
$.log(`获取到远程且有数据`);
Expand Down

0 comments on commit 66a0505

Please sign in to comment.