Fix version tag formatting and error handling

Update packet.ts to prefix napCatVersion with 'v' in the error message link. In vite-plugin-version.js, improve formatting of catch blocks, ensure returned tags do not include a leading 'v', and standardize fallback version to '0.0.0'.
This commit is contained in:
手瓜一十雪 committed 2025-11-25 23:03:55 +08:00
1 parent 7c701781a1
commit d31f0a45b4
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ export class NTQQPacketApi {
const table = typedOffset[qqVer + '-' + os.arch()];
if (!table) {
const err = `[Core] [Packet] PacketBackend 不支持当前QQ版本架构:${qqVer}-${os.arch()},
请参照 https://github.com/NapNeko/NapCatQQ/releases/tag/${napCatVersion} 配置正确的QQ版本!`;
请参照 https://github.com/NapNeko/NapCatQQ/releases/tag/v${napCatVersion} 配置正确的QQ版本!`;
this.logger.logError(err);
this.errStack.push(err);
return false;