From 5c64147dfa2fa2aea76cb3d11a892e5700ba63dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 8 Sep 2024 10:34:49 +0800 Subject: [PATCH] fix: encodeFile --- src/common/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/helper.ts b/src/common/helper.ts index fcfd5a96..e7b767b1 100644 --- a/src/common/helper.ts +++ b/src/common/helper.ts @@ -65,7 +65,7 @@ export class FileNapCatOneBotUUID { const length = Buffer.alloc(4 + data.length); length.writeUInt32BE(data.length, 0); length.write(data, 4); - return length.toString('hex'); + return length.toString('hex') + endString; } static decode(uuid: string): undefined | {