fix:update info&bat script
release / build-linux (arm64, darwin) (push) Canceled after 0s
release / build-linux (arm64, linux) (push) Canceled after 0s
release / build-linux (x64, darwin) (push) Canceled after 0s
release / build-linux (x64, linux) (push) Canceled after 0s
release / build-win32 (x64, win32) (push) Canceled after 0s
release / release-napcat (push) Canceled after 0s

This commit is contained in:
手瓜一十雪 committed 2024-04-15 10:32:54 +08:00
1 parent d5e117b89f
commit 5e026a3e8d
4 files changed
+9 -16

No files matched your search

+2
View File
@@ -24,11 +24,13 @@ checkVersion().then((remoteVersion: string) => {
for (const k of [0, 1, 2]) {
if (parseInt(remoteVersionList[k]) > parseInt(localVersionList[k])) {
console.log('检测到更新,请前往 https://github.com/NapNeko/NapCatQQ 下载 NapCatQQ V', remoteVersion);
return;
} else if (parseInt(remoteVersionList[k]) < parseInt(localVersionList[k])) {
break;
}
}
console.log('当前已是最新版本,版本:', localVersion);
return;
});
new NapCatOnebot11();
napCatCore.addLoginSuccessCallback(() => {