From 5ee7d55fb199f17eca3cf5fe26c436d01d1c8096 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 | {