diff --git a/back/config/index.ts b/back/config/index.ts index d7a90187..357a405c 100644 --- a/back/config/index.ts +++ b/back/config/index.ts @@ -14,7 +14,7 @@ if (!process.env.QL_DIR) { process.env.QL_DIR = qlHomePath.replace(/\/$/g, ''); } -const lastVersionFile = `https://qn.whyour.cn/version.ts?v=${Date.now()}`; +const lastVersionFile = `https://qn.whyour.cn/version.ts`; const rootPath = process.env.QL_DIR as string; const envFound = dotenv.config({ path: path.join(rootPath, '.env') }); diff --git a/back/services/system.ts b/back/services/system.ts index 5639dd2a..749fd91f 100644 --- a/back/services/system.ts +++ b/back/services/system.ts @@ -89,7 +89,7 @@ export default class SystemService { let lastLog = ''; try { const lastVersionFileContent = await promiseExec( - `curl ${config.lastVersionFile}`, + `curl ${config.lastVersionFile}?t=${Date.now()}`, ); lastVersion = lastVersionFileContent.match(versionRegx)![1]; lastLog = lastVersionFileContent.match(logRegx)