fix: vite-env

This commit is contained in:
手瓜一十雪
2024-05-26 20:38:18 +08:00
parent 6250b3c09c
commit 73816da635
2 changed files with 14 additions and 1 deletions

View File

@@ -110,7 +110,10 @@ export class NapCatOnebot11 {
// }
// };
try {
//console.log(buf2hex(Buffer.from(protobufData)));
// 生产环境会自己去掉
if (import.meta.env.MODE == 'development') {
console.log(buf2hex(Buffer.from(protobufData)));
}
const sysMsg = SysData.fromBinary(Buffer.from(protobufData));
const peeruin = sysMsg.header[0].peerNumber;
const peeruid = sysMsg.header[0].peerString;