mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: encodeFile
This commit is contained in:
@@ -65,7 +65,7 @@ export class FileNapCatOneBotUUID {
|
|||||||
const length = Buffer.alloc(4 + data.length);
|
const length = Buffer.alloc(4 + data.length);
|
||||||
length.writeUInt32BE(data.length, 0);
|
length.writeUInt32BE(data.length, 0);
|
||||||
length.write(data, 4);
|
length.write(data, 4);
|
||||||
return length.toString('hex');
|
return length.toString('hex') + endString;
|
||||||
}
|
}
|
||||||
|
|
||||||
static decode(uuid: string): undefined | {
|
static decode(uuid: string): undefined | {
|
||||||
|
Reference in New Issue
Block a user