Skip to content

Commit

Permalink
调整部分脚本运行时间
Browse files Browse the repository at this point in the history
  • Loading branch information
zero205 committed May 15, 2021
1 parent 8a1c90f commit 1bdc257
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions backUp/softupdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ let CONFIG = {
restart: 'elecV2P', // false: 只更新文件,不重启不应用。 其他值表示 pm2 重启线程名,比如 all/elecV2P/index(暂时不清楚就保持不动)
noupdate: [
'script/Store', // 设置一些不覆盖更新的文件夹(保留个人数据)。根据个人需求进行调整
// 'script/JSFile', // 如果不设置,也只会覆盖更新 elecV2P 自带的同名文件,对其他文件无影响
// 'script/Shell',
'script/JSFile', // 如果不设置,也只会覆盖更新 elecV2P 自带的同名文件,对其他文件无影响
'script/Shell',
'script/Lists',
'rootCA',
'Docker', // 当文件夹或名称中包含 Docker 时,跳过下载更新
'Todo', // 排除单个文件,使用文件名包含的关键字即可
'^\\.', // 也可以使用正则表示式。匹配方式为 new RegExp(str).test(fileurl)
],
wbtoken: '652ead25-1c3c-4fc8-b0b2-76a16882d571', // webhook token(在 SETTING 界面查看)用于发送保存当前任务列表的网络请求,可省略。
wbtoken: '0a6f6e68-eaba-4036-8e1d-7a1bef657cf8', // webhook token(在 SETTING 界面查看)用于发送保存当前任务列表的网络请求,可省略。
cdngit: 'https://ghproxy.com/https://raw.githubusercontent.com', // 可自定义 raw.githubusercontent.com 加速站点
about: 'elecV2P 软更新配置文件,详情: https://raw.githubusercontent.com/elecV2/elecV2P/master/script/JSFile/softupdate.js'
}
Expand Down Expand Up @@ -50,7 +50,7 @@ let CONFIG = {
}
try {
console.log('开始获取最新版本号...')
let res = await $axios(CONFIG.cdngit + '/elecV2/elecV2P/master/package.json')
let res = await $axios('https://ghproxy.com/https://raw.githubusercontent.com/elecV2/elecV2P/master/package.json')
let newversion = res.data.version
if (newversion) {
console.log('当前版本:', __version, '最新版本:', newversion)
Expand Down Expand Up @@ -104,7 +104,7 @@ let CONFIG = {
}
}
if (btoUP) {
let durl = CONFIG.cdngit + '/elecV2/elecV2P/master/' + file.path
let durl = 'https://ghproxy.com/https://raw.githubusercontent.com/elecV2/elecV2P/master/' + file.path
console.log('获取更新:', durl)
try {
await $download(durl, { folder: './', name: file.path }, d=>{
Expand Down
8 changes: 4 additions & 4 deletions jd_task.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "京东定时任务",
"desc": "elecV2P 京东定时任务订阅。该订阅仅可用于 elecV2P, 与其他软件并不兼容。相关说明参考: https://github.com/elecV2/elecV2P-dei/tree/master/docs/06-task.md",
"author": "zero205",
"date": "2021-04-09 17:12:30",
"date": "2021-05-15 16:16:30",
"surl": "https://gitee.com/zero205/JD_tencent_scf",
"list": [
{
Expand Down Expand Up @@ -278,7 +278,7 @@
{
"name": "超级直播间红包雨",
"type": "cron",
"time": "0,30,31 20-23/1 14 * *",
"time": "0,30,31 20-23/1 18 * *",
"job": {
"type": "runjs",
"target": "https://gitee.com/zero205/JD_tencent_scf/raw/main/jd_live_redrain.js"
Expand Down Expand Up @@ -397,7 +397,7 @@
{
"name": "进店领豆",
"type": "cron",
"time": "1 0 * * *",
"time": "10 0 0 * * *",
"running": true,
"job": {
"type": "runjs",
Expand Down Expand Up @@ -457,7 +457,7 @@
{
"name": "取关京东店铺商品",
"type": "cron",
"time": "50 7,11,23 * * *",
"time": "50 10,19,23 * * *",
"running": true,
"job": {
"type": "runjs",
Expand Down

0 comments on commit 1bdc257

Please sign in to comment.