mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
支持某个ck临时屏蔽某个脚本
This commit is contained in:
parent
26fdb626ea
commit
a5b0924036
|
@ -114,6 +114,13 @@ export GOBOT_URL = ""
|
|||
export GOBOT_TOKEN = ""
|
||||
export GOBOT_QQ = ""
|
||||
|
||||
## 如果只是想要屏蔽某个ck不执行某个脚本,可以参考下面 case 这个命令的例子来控制,脚本名称包含后缀
|
||||
## case $1 in
|
||||
## test.js)
|
||||
## TempBlockCookie="5"
|
||||
## ;;
|
||||
## esac
|
||||
|
||||
## 需组合的环境变量列表,env_name需要和var_name一一对应,如何有新活动按照格式添加(不懂勿动)
|
||||
env_name=(
|
||||
JD_COOKIE
|
||||
|
|
|
@ -10,6 +10,9 @@ combine_sub() {
|
|||
local combined_all=""
|
||||
local tmp1 tmp2
|
||||
for ((i = 1; i <= $user_sum; i++)); do
|
||||
for num in $TempBlockCookie; do
|
||||
[[ $i -eq $num ]] && continue 2
|
||||
done
|
||||
local tmp1=$what_combine$i
|
||||
local tmp2=${!tmp1}
|
||||
combined_all="$combined_all&$tmp2"
|
||||
|
|
Loading…
Reference in New Issue
Block a user