报错
zry9815 opened this issue · 5 comments
开始执行... 2022-10-30 19:11:30
/ql/shell/otask.sh: line 86: [[: 65
5: syntax error in expression (error token is "5")
/ql/data/scripts/charmingYouYou_smzdm_sign_ql_main/index.swap.ts:13
const SMZDM_COOKIE_LIST = getProcessEnv("SMZDM_COOKIE_LIST") || [];
^
TypeError: (0 , utils_1.getProcessEnv) is not a function
at Object. (/ql/data/scripts/charmingYouYou_smzdm_sign_ql_main/index.swap.ts:13:40)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module.m._compile (/root/.local/share/pnpm/global/5/.pnpm/ts-node@10.9.1_typescript@4.8.4/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Object.require.extensions. [as .ts] (/root/.local/share/pnpm/global/5/.pnpm/ts-node@10.9.1_typescript@4.8.4/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at phase4 (/root/.local/share/pnpm/global/5/.pnpm/ts-node@10.9.1_typescript@4.8.4/node_modules/ts-node/src/bin.ts:649:14)
at bootstrap (/root/.local/share/pnpm/global/5/.pnpm/ts-node@10.9.1_typescript@4.8.4/node_modules/ts-node/src/bin.ts:95:10)
执行结束... 2022-10-30 19:11:41 耗时 11 秒
你看下你charmingYouYou_smzdm_sign_ql_main目录下有utils.ts文件且文件里面有getProcessEnv这个函数吗