mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
版本文件改为七牛云存储
This commit is contained in:
@@ -87,13 +87,10 @@ export default class SystemService {
|
||||
let lastVersion = '';
|
||||
let lastLog = '';
|
||||
try {
|
||||
const result = await Promise.race([
|
||||
got.get(config.lastVersionFile, { timeout: 6000, retry: 0 }),
|
||||
got.get(`https://ghproxy.com/${config.lastVersionFile}`, {
|
||||
timeout: 6000,
|
||||
retry: 0,
|
||||
}),
|
||||
]);
|
||||
const result = await got.get(config.lastVersionFile, {
|
||||
timeout: 6000,
|
||||
retry: 0,
|
||||
});
|
||||
const lastVersionFileContent = result.body;
|
||||
lastVersion = lastVersionFileContent.match(versionRegx)![1];
|
||||
lastLog = lastVersionFileContent.match(logRegx)
|
||||
|
||||
Reference in New Issue
Block a user