重构代码

This commit is contained in:
Olia Lisa
2026-01-10 19:53:01 +08:00
parent dd0de70578
commit 181ac506d5
6 changed files with 14 additions and 15 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
update_xhttp_path(){
script_dir=$(cd "$(dirname "$0")"; pwd) # 脚本文件绝对路径
config_dir="$script_dir/../conf"
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件绝对路径
local config_dir="$script_dir/../conf"
source $script_dir/utils/jq_util.sh
path_length="$(( RANDOM % 4 + 8 ))"