mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
版本文件改为七牛云存储
This commit is contained in:
1 parent
7d6e1d3e3d
commit
f71b3d0378
9 files changed
+496
-145
No files matched your search
@@ -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