修改内置token获取方式

This commit is contained in:
whyour
2022-08-11 13:13:37 +08:00
parent 53414e5d70
commit a7117e4442
4 changed files with 22 additions and 8 deletions
+1 -6
View File
@@ -1,12 +1,7 @@
#!/usr/bin/env bash
get_token() {
local tokenFile="$dir_static/build/token.js"
if [[ ! -f "$tokenFile" ]]; then
token=$(ts-node-transpile-only "$dir_root/back/token.ts")
else
token=$(node "$tokenFile")
fi
token=$(cat $file_auth_token | jq -r .value)
}
add_cron_api() {