🥧Many
This commit is contained in:
parent
4690237dba
commit
91ecd53a84
@ -67,10 +67,10 @@ if [ "${Rextra}" = 'y' -o "${Rall}" = 1 ]; then
|
||||
# 授权
|
||||
chmod 755 $extra_shell_path
|
||||
# extra.sh 预设仓库及默认拉取仓库设置
|
||||
echo -e "(1)panghu999\n(2)JDHelloWorld\n(3)he1pu\n(4)shufflewzc\n(6)Aaron-lv"
|
||||
read -p "输入您想拉取的仓库编号(默认为 4):" defaultNum
|
||||
defaultNum=${defaultNum:-'4'}
|
||||
sed -i "s/\$default4/\$default${defaultNum}/g" $extra_shell_path
|
||||
echo -e "(2)JDHelloWorld\n(3)he1pu\n(4)shufflewzc\n(6)Aaron-lv"
|
||||
read -p "输入您想拉取的仓库编号(默认为 4),拉取多个请用空格隔开:" defaultNum
|
||||
defaultNum=${defaultNum:-"4"}
|
||||
sed -i "s/CollectedRepo=(4)/CollectedRepo=(${defaultNum})/g" $extra_shell_path
|
||||
# 将 extra.sh 添加到定时任务
|
||||
if [ "$(grep -c extra /ql/config/crontab.list)" = 0 ]; then
|
||||
echo "开始添加 task ql extra"
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
更新日志:
|
||||
|
||||
2021.7.28.002
|
||||
1、改善修复依赖的可靠性。
|
||||
|
||||
2021.7.28.001
|
||||
1、回退,取消互助规则长度限制。
|
||||
|
||||
2021.7.27.001
|
||||
1、新增两种更新 task_before.sh 互助码或互助规则的模式:UpdateType="2" 表示只更新互助码,不更新互助规则;UpdateType="3" 表示只更新互助规则,不更新互助码;
|
||||
2、task_before.sh 新增支持 config.sh 临时屏蔽某个Cookie的填写规则增加区间格式;
|
||||
3、config_sample.sh 新增临时屏蔽某个Cookie的填写规则增加区间格式样板。如:3 7_8 9-10 12~13。
|
||||
|
||||
2021.7.22.001
|
||||
1、添加京东摇钱树互助码格式化导出功能。配套 task_before.sh 务必更新使用。
|
||||
|
||||
|
||||
@ -56,8 +56,8 @@ c)问题:
|
||||
如果非要强行运行,方法如下:
|
||||
① 修改config.sh如果日志输出线程数是 9
|
||||
② 再在 code.sh 搜索
|
||||
"$ps_num" -le 7 和 "$ps_num" -gt 7
|
||||
把 7 改成 9,然后 code.sh 就可以运行了,但不建议这么做,因为这是一个防呆设计。
|
||||
proc_num="7" 改成 proc_num="9"
|
||||
然后 code.sh 就可以运行了,但不建议这么做,因为这是一个防呆设计。
|
||||
|
||||
四、code.sh 安装依赖包后的检测方法:
|
||||
① 进入青龙控制台
|
||||
|
||||
70
Scripts/sh/Helpcode2.8/doc.txt
Normal file
70
Scripts/sh/Helpcode2.8/doc.txt
Normal file
@ -0,0 +1,70 @@
|
||||
[ 信物 : code.sh ]
|
||||
2021.7.28.002
|
||||
1、改善修复依赖的可靠性。
|
||||
|
||||
2021.7.28.001
|
||||
1、回退,取消互助规则长度限制。
|
||||
|
||||
2021.7.27.001
|
||||
1、新增两种更新 task_before.sh 互助码或互助规则的模式:UpdateType="2" 表示只更新互助码,不更新互助规则;UpdateType="3" 表示只更新互助规则,不更新互助码。
|
||||
|
||||
2021.7.22.001
|
||||
1、添加京东摇钱树互助码格式化导出功能。配套 task_before.sh 务必更新使用。
|
||||
|
||||
2021.7.21.002
|
||||
1、改进一些逻辑判断,改善自动安装或修复依赖的可靠性。
|
||||
|
||||
2021.7.21.001
|
||||
1、添加常用依赖的自动安装和自动修复功能。可自定义功能开关和依赖安装包名称。
|
||||
|
||||
2021.7.17.001
|
||||
1、curtinlv 的京东超市已经支持 JD_COOKIE ,故取消修改脚本的代码。
|
||||
|
||||
2021.7.16.001
|
||||
1、完善几处代码语法,避免报错;
|
||||
2、新财富岛强制调用 Aaron-lv 仓库脚本日志。可以自定义。
|
||||
|
||||
[ 信物 : task_before.sh ]
|
||||
2021.7.27.001
|
||||
1、支持 config.sh 临时屏蔽某个Cookie的填写规则增加区间格式。如:4~5 6_8 9-12。
|
||||
|
||||
2021.7.22.001
|
||||
1、添加京东摇钱树互助码格式化提交代码。
|
||||
|
||||
2021.7.15-001
|
||||
1、临时屏蔽某个Cookie后,即刻禁止改账号参加活动和助力他人。
|
||||
|
||||
[ 信物 : config_sample.sh ]
|
||||
2021.7.29.001
|
||||
1、修正一些情况下的 curtinlv、cdle环境变量代码匹配不正确的问题。
|
||||
|
||||
2021.7.27.002
|
||||
1、新增临时屏蔽某个Cookie的填写规则增加区间格式样板。如:3 7_8 9-10 12~13。
|
||||
|
||||
2021.7.27.001
|
||||
1、由于 cdle 的环境变量不支持中文用户名,故还原为 urlencode 编码格式,以兼容真·抢京豆、愤怒的锦鲤活动。
|
||||
|
||||
2021.7.23.001
|
||||
1、同步 Oreo 大佬,增加JDHelloWorld、cdle、Aaron-lv大佬的环境变量。
|
||||
|
||||
2021.7.21-001
|
||||
1、添加 curtinlv 京喜京喜工厂开团助力环境变量(自动格式化代码版)。
|
||||
|
||||
2021.7.19-001
|
||||
1、添加 JDHelloWorld 新版京喜财富岛环境变量。
|
||||
|
||||
2021.7.18-001
|
||||
1、完善临时屏蔽 COOKIES 参加某活动的规则,解决影响到别的活动的问题 ;(感谢网友 Kay 、Sky 测试反馈)
|
||||
|
||||
2021.7.17.001
|
||||
1、添加 curtinlv 的京东超市并发线程开关、定义兑换商品名称的环境变量。
|
||||
|
||||
2021.7.15-001
|
||||
1、添加京东试用jd_try相关环境变量。
|
||||
|
||||
说明:
|
||||
①config.sh模板,适用于青龙 2.8.0。整合了Oreo大佬的最新环境变量。
|
||||
②注意:青龙面板的对比工具,呈现的 config.sample.sh 其实是 /ql/sample/路径下的文件,不是 /ql/config/ 路径下的。所以无论你怎么折腾 /ql/config/ 路径的这个文件模板,都无法使用青龙面板进行对比。建议使用 Beyond Compare 等第三方软件对附件和自己的 config.sh 进行对比更新。
|
||||
|
||||
频道:https://t.me/update_help
|
||||
交流群:https://t.me/update_help_group
|
||||
@ -84,7 +84,7 @@ ql repo https://github.com/panghu999/panghu.git "jd_"
|
||||
```
|
||||
- `star261`
|
||||
```
|
||||
ql repo https://github.com/star261/jd.git "jd_|star" "" "MovementFaker"
|
||||
ql repo https://github.com/star261/jd.git "jd_|star" "" "code" "main"
|
||||
```
|
||||
- `Wenmoux`
|
||||
```
|
||||
@ -133,6 +133,18 @@ or
|
||||
ql repo https://github.com/Wenmoux/scripts.git "chinnkarahoi_jd_bookshop" "" "" "wen"
|
||||
```
|
||||
|
||||
> `NobyDa`
|
||||
|
||||
>> 京东多合一签到脚本
|
||||
|
||||
```
|
||||
ql raw https://raw.githubusercontent.com/NobyDa/Script/master/JD-DailyBonus/JD_DailyBonus.js
|
||||
```
|
||||
or
|
||||
```
|
||||
ql repo https://github.com/NobyDa/Script.git "JD-DailyBonus" "" "JD_DailyBonus" "master"
|
||||
```
|
||||
|
||||
## 已删库存档
|
||||
- `monk-coder`
|
||||
```
|
||||
|
||||
@ -1,141 +1,128 @@
|
||||
#!/usr/bin/env bash
|
||||
## Mod: Build20210729V2
|
||||
## Mod: Build20210730V1
|
||||
## 添加你需要重启自动执行的任意命令,比如 ql repo
|
||||
## 安装node依赖使用 pnpm install -g xxx xxx(Build 20210728-002 及以上版本的 code.sh,可忽略)
|
||||
## 安装python依赖使用 pip3 install xxx(Build 20210728-002 及以上版本的 code.sh,可忽略)
|
||||
|
||||
## 使用方法
|
||||
## 1.拉取仓库
|
||||
|
||||
#------ 说明区 ------#
|
||||
## 1. 拉取仓库
|
||||
### (1)定时任务→添加定时→命令【ql extra】→定时规则【15 0-23/4 * * *】→运行
|
||||
### (2)若运行过 1custom 一键脚本,点击运行即可
|
||||
### (3)推荐配置:如下。自行在需要的命令前注释和取消注释 ##,该文件最前的 # 勿动
|
||||
## 2.安装依赖
|
||||
### (3)推荐配置:如下。自行在设置区填写编号
|
||||
## 2. 安装依赖
|
||||
### (1)默认不安装,因为 Build 20210728-002 及以上版本的 code.sh 自动检查修复依赖
|
||||
### (2)若需要在此处使用,请删除依赖附近的注释
|
||||
## 3.Ninja
|
||||
### (2)若需要在此处使用,请在设置区设置
|
||||
## 3. Ninja
|
||||
### (1)默认不启动和更新
|
||||
### (2)若需要启动和更新,则令 Ninja=up
|
||||
Ninja=down ##up为运行,down为不运行
|
||||
|
||||
|
||||
# 一、拉取仓库
|
||||
# A.预设仓库和参数(u=url,p=path,k=blacklist,d=dependence,b=branch),如果懂得定义可以自行修改
|
||||
# (1)预设的 panghu999 仓库
|
||||
u1="https://github.com/panghu999/jd_scripts.git"
|
||||
p1="jd_|jx_|getJDCookie"
|
||||
k1="activity|backUp|Coupon|jd_try|format_"
|
||||
d1="^jd[^_]|USER"
|
||||
# (2)预设的 JDHelloWorld 仓库
|
||||
u2="https://github.com/JDHelloWorld/jd_scripts.git"
|
||||
p2="jd_|jx_|getJDCookie"
|
||||
k2="activity|backUp|Coupon|enen|update|test"
|
||||
d2="^jd[^_]|USER|^TS|utils|notify|env|package|ken.js"
|
||||
# (3)预设的 he1pu 仓库
|
||||
u3="https://github.com/he1pu/JDHelp.git"
|
||||
p3="jd_|jx_|getJDCookie"
|
||||
k3="activity|backUp|Coupon|update"
|
||||
d3="^jd[^_]|USER|utils|^MovementFaker|^JDJRValidator|^sign|^ZooFaker"
|
||||
# (4)预设的 shufflewzc 仓库
|
||||
u4="https://github.com/shufflewzc/faker2.git"
|
||||
p4="jd_|jx_|gua_|jddj_|getJDCookie"
|
||||
k4="activity|backUp|update"
|
||||
d4="^jd[^_]|USER|utils|^ZooFaker|^JDJRValidator|^sign"
|
||||
# (6)预设的 Aaron-lv 仓库
|
||||
u6="https://github.com/Aaron-lv/sync.git"
|
||||
p6="jd_|jx_|getJDCookie"
|
||||
k6="activity|backUp|Coupon"
|
||||
d6="^jd[^_]|USER|utils"
|
||||
b6="jd_scripts"
|
||||
# 默认拉取仓库参数集合
|
||||
default1="$u1 $p1 $k1 $d1"
|
||||
default2="$u2 $p2 $k2 $d2"
|
||||
default3="$u3 $p3 $k3 $d3"
|
||||
default4="$u4 $p4 $k4 $d4"
|
||||
default6="$u6 $p6 $k6 $d6 $b6"
|
||||
# 默认拉取仓库编号设置
|
||||
default=$default4 ##此处修改,只改数字,默认 shufflewzc 仓库
|
||||
|
||||
# B.单脚本
|
||||
## 名称之后标注﹢的单脚本,若下面已拉取仓库的可以不拉。这里适用于只拉取部分脚本使用
|
||||
# 1. curtinlv﹢
|
||||
## 入会 15 8 * * *
|
||||
## ql raw https://raw.githubusercontent.com/curtinlv/JD-Script/main/OpenCard/jd_OpenCard.py
|
||||
## 关注 15 8 * * *
|
||||
## ql raw https://raw.githubusercontent.com/curtinlv/JD-Script/main/getFollowGifts/jd_getFollowGift.py
|
||||
|
||||
# 2. chiupam
|
||||
## 京喜工厂瓜分电力开团 ID
|
||||
## ql raw https://raw.githubusercontent.com/chiupam/JD_Diy/master/pys/activeId.py
|
||||
|
||||
# 3. Aaron-lv
|
||||
## 财富岛
|
||||
## ql raw https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_cfd.js
|
||||
## ql repo https://github.com/Aaron-lv/sync.git "jd_cfd" "" "" "jd_scripts"
|
||||
|
||||
# 4. Wenmoux
|
||||
## 口袋书店
|
||||
## ql raw https://raw.githubusercontent.com/Wenmoux/scripts/wen/jd/chinnkarahoi_jd_bookshop.js
|
||||
## ql repo https://github.com/Wenmoux/scripts.git "chinnkarahoi_jd_bookshop" "" "" "wen"
|
||||
|
||||
# 5. NobyDa
|
||||
## 京东多合一签到脚本
|
||||
## ql repo https://github.com/NobyDa/Script.git "JD-DailyBonus" "" "JD_DailyBonus" "master"
|
||||
|
||||
# C.整库
|
||||
# 1. Unknown 备份托管等(如上)
|
||||
ql repo $default ##此处勿动
|
||||
|
||||
# 2. passerby-b
|
||||
## ql repo https://github.com/passerby-b/JDDJ.git "jddj_" "scf_test_event|jddj_fruit_code.js|jddj_getck.js|jd_|jddj_cookie"
|
||||
|
||||
# 3. curtinlv
|
||||
## ql repo https://github.com/curtinlv/JD-Script.git "jd_"
|
||||
|
||||
# 4. smiek2221
|
||||
## ql repo https://github.com/smiek2221/scripts.git "jd_|gua_" "" "^ZooFaker|^JDJRValidator|^sign"
|
||||
|
||||
# 5. cdle
|
||||
## ql repo https://github.com/cdle/jd_study.git "jd_" "expired"
|
||||
|
||||
# 6. ZCY01
|
||||
## ql repo https://github.com/ZCY01/daily_scripts.git "jd_"
|
||||
|
||||
# 7. whyour/hundun
|
||||
## ql repo https://github.com/whyour/hundun.git "quanx" "tokens|caiyun|didi|donate|fold|Env"
|
||||
|
||||
# 8. moposmall
|
||||
## ql repo https://github.com/moposmall/Script.git "Me"
|
||||
|
||||
# 9. Ariszy (Zhiyi-N)
|
||||
## ql repo https://github.com/Ariszy/Private-Script.git "JD"
|
||||
|
||||
# 10. photonmang(宠汪汪及兑换、点点券修复)
|
||||
## ql repo https://github.com/photonmang/quantumultX.git "JDscripts"
|
||||
|
||||
# 11. jiulan
|
||||
## ql repo https://github.com/jiulan/platypus.git
|
||||
|
||||
# 12. panghu999/panghu
|
||||
## ql repo https://github.com/panghu999/panghu.git "jd_"
|
||||
|
||||
# 13. star261
|
||||
## ql repo https://github.com/star261/jd.git "jd_|star" "" "code" "main"
|
||||
|
||||
# 14. Wenmoux
|
||||
## ql repo https://github.com/Wenmoux/scripts.git "other|jd" "" "" "wen"
|
||||
#------ 设置区 ------#
|
||||
## 1. 默认拉取仓库编号设置,默认 shufflewzc 仓库
|
||||
CollectedRepo=(4) ##示例:CollectedRepo=(2 4 6)
|
||||
OtherRepo=() ##示例:OtherRepo=(1 3)
|
||||
## 2. 是否安装依赖和安装依赖包的名称设置
|
||||
Install="no" ##yes为安装,no为不安装
|
||||
package_name="canvas png-js date-fns axios crypto-js ts-md5 tslib @types/node dotenv typescript fs require tslib"
|
||||
## 3. Ninja 是否需要启动和更新设置
|
||||
Ninja="down" ##up为运行,down为不运行
|
||||
|
||||
|
||||
# 二、Ninja
|
||||
## 说明:默认不运行,运行会自动更新 ninja、启动 ninja 命令添加到青龙 configs 文件夹的 extra.sh 文件,实现开机自动更新和启动
|
||||
#------ 编号区 ------#
|
||||
:<<\EOF
|
||||
一、集成仓库(Collected Repositories)
|
||||
2-JDHelloWorld
|
||||
3-he1pu
|
||||
4-shufflewzc
|
||||
6-Aaron-lv
|
||||
|
||||
二、其他仓库(Other Repositories)
|
||||
1-passerby-b
|
||||
2-curtinlv
|
||||
3-smiek2221
|
||||
4-cdle
|
||||
5-ZCY01
|
||||
6-whyour/hundun
|
||||
7-moposmall
|
||||
8-Ariszy (Zhiyi-N)
|
||||
9-photonmang
|
||||
10-jiulan
|
||||
11-panghu999/panghu
|
||||
12-star261
|
||||
13-Wenmoux
|
||||
EOF
|
||||
|
||||
|
||||
#------ 代码区 ------#
|
||||
# 🌱拉取仓库
|
||||
CR2(){
|
||||
ql repo https://github.com/JDHelloWorld/jd_scripts.git "jd_|jx_|getJDCookie" "activity|backUp|Coupon|enen|update|test" "^jd[^_]|USER|^TS|utils|notify|env|package|ken.js"
|
||||
}
|
||||
CR3(){
|
||||
ql repo https://github.com/he1pu/JDHelp.git "jd_|jx_|getJDCookie" "activity|backUp|Coupon|update" "^jd[^_]|USER|utils|^MovementFaker|^JDJRValidator|^sign|^ZooFaker"
|
||||
}
|
||||
CR4(){
|
||||
ql repo https://github.com/shufflewzc/faker2.git "jd_|jx_|gua_|jddj_|getJDCookie" "activity|backUp|update" "^jd[^_]|USER|^ZooFaker|^JDJRValidator|^sign"
|
||||
}
|
||||
CR6(){
|
||||
ql repo https://github.com/Aaron-lv/sync.git "jd_|jx_|getJDCookie" "activity|backUp|Coupon" "^jd[^_]|USER|utils" "jd_scripts"
|
||||
}
|
||||
for i in ${CollectedRepo[@]}; do
|
||||
CR$i
|
||||
done
|
||||
|
||||
OR1(){
|
||||
ql repo https://github.com/passerby-b/JDDJ.git "jddj_" "scf_test_event|jddj_fruit_code.js|jddj_getck.js|jd_|jddj_cookie"
|
||||
}
|
||||
OR2(){
|
||||
ql repo https://github.com/curtinlv/JD-Script.git "jd_"
|
||||
}
|
||||
OR3(){
|
||||
ql repo https://github.com/smiek2221/scripts.git "jd_|gua_" "" "^ZooFaker|^JDJRValidator|^sign"
|
||||
}
|
||||
OR4(){
|
||||
ql repo https://github.com/cdle/jd_study.git "jd_" "expired"
|
||||
}
|
||||
OR5(){
|
||||
ql repo https://github.com/ZCY01/daily_scripts.git "jd_"
|
||||
}
|
||||
OR6(){
|
||||
ql repo https://github.com/whyour/hundun.git "quanx" "tokens|caiyun|didi|donate|fold|Env"
|
||||
}
|
||||
OR7(){
|
||||
ql repo https://github.com/moposmall/Script.git "Me"
|
||||
}
|
||||
OR8(){
|
||||
ql repo https://github.com/Ariszy/Private-Script.git "JD"
|
||||
}
|
||||
OR9(){
|
||||
ql repo https://github.com/photonmang/quantumultX.git "JDscripts"
|
||||
}
|
||||
OR10(){
|
||||
ql repo https://github.com/jiulan/platypus.git
|
||||
}
|
||||
OR11(){
|
||||
ql repo https://github.com/panghu999/panghu.git "jd_"
|
||||
}
|
||||
OR12(){
|
||||
ql repo https://github.com/star261/jd.git "jd_|star" "" "code" "main"
|
||||
}
|
||||
OR13(){
|
||||
ql repo https://github.com/Wenmoux/scripts.git "other|jd" "" "" "wen"
|
||||
}
|
||||
for i in ${OtherRepo[@]}; do
|
||||
OR$i
|
||||
done
|
||||
|
||||
|
||||
# 🍪Ninja
|
||||
if [ "${Ninja}" = 'up' ]; then
|
||||
cd /ql/ninja/backend && git pull -f && pnpm install && pm2 start && cp sendNotify.js /ql/scripts/sendNotify.js &
|
||||
cd /ql/ninja/backend && git checkout . && git pull && pnpm install && pm2 start && cp sendNotify.js /ql/scripts/sendNotify.js
|
||||
fi
|
||||
|
||||
|
||||
# 三、依赖
|
||||
:<<\EOF #取消注释请删除该行和后面提到的一行
|
||||
package_name="canvas png-js date-fns axios crypto-js ts-md5 tslib @types/node dotenv typescript fs require tslib"
|
||||
|
||||
# 📦依赖
|
||||
install_dependencies_normal(){
|
||||
for i in $@; do
|
||||
case $i in
|
||||
@ -202,5 +189,6 @@ install_dependencies_all(){
|
||||
done
|
||||
}
|
||||
|
||||
install_dependencies_all &
|
||||
EOF #取消注释请删除该行和前面提到的一行
|
||||
if [ "${Install}" = 'yes' ]; then
|
||||
install_dependencies_all &
|
||||
fi
|
||||
Loading…
Reference in New Issue
Block a user