diff --git a/Scripts/sh/Helpcode2.8/task_before.sh b/Scripts/sh/Helpcode2.8/task_before.sh index 1bfec62..5ef4415 100644 --- a/Scripts/sh/Helpcode2.8/task_before.sh +++ b/Scripts/sh/Helpcode2.8/task_before.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash -# Build 20210817-001 - -p1=$1 +# Build 20210822-001 name_js=( jd_fruit @@ -227,9 +225,8 @@ combine_all() { ## 正常依次运行时,组合互助码格式化为全局变量 combine_only() { - local scr=$p1 ## 活动脚本完整文件名 for ((i = 0; i < ${#env_name[*]}; i++)); do - case $scr in + case $first_param in *${name_js[i]}.js | *${name_js[i]}.ts) if [[ -f $dir_log/.ShareCode/${name_config[i]}.log ]]; then . $dir_log/.ShareCode/${name_config[i]}.log @@ -250,7 +247,7 @@ TempBlock_JD_COOKIE && Random_JD_COOKIE if [ $scr_name ]; then team_task -elif [ $p1 ]; then +else combine_only fi