mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-07 03:46:07 +08:00
修复版本文件缓存
This commit is contained in:
parent
049c73880b
commit
fb4a87f5ce
|
@ -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') });
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user