mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复内置token获取
This commit is contained in:
+6
-1
@@ -1,7 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
get_token() {
|
||||
token=$(ts-node-transpile-only "$dir_shell/token.ts")
|
||||
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
|
||||
}
|
||||
|
||||
add_cron_api() {
|
||||
|
||||
Reference in New Issue
Block a user