mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 04:45:46 +00:00
refactor: ws log
This commit is contained in:
parent
f8abb73c92
commit
30bd3d2d52
@ -50,7 +50,7 @@ class OB11WebsocketServer extends WebsocketServerBase {
|
||||
try {
|
||||
receiveData = JSON.parse(msg.toString());
|
||||
echo = receiveData.echo;
|
||||
log('收到正向Websocket消息', receiveData);
|
||||
logDebug('收到正向Websocket消息', receiveData);
|
||||
} catch (e) {
|
||||
return wsReply(wsClient, OB11Response.error('json解析失败,请检查数据格式', 1400, echo));
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ const baseConfigPlugin: PluginOption[] = [
|
||||
{ src: './src/onebot11/onebot11.json', dest: 'dist/config/' },
|
||||
{ src: './package.json', dest: 'dist' },
|
||||
{ src: './README.md', dest: 'dist' },
|
||||
{ src: './logo.png', dest: 'dist/logs' },
|
||||
{ src: './src/core.lib/MoeHoo-win32-x64.node', dest: 'dist' },
|
||||
{ src: './src/core.lib/MoeHoo-linux-x64.node', dest: 'dist' },
|
||||
...(startScripts.map((startScript) => {
|
||||
|
Loading…
Reference in New Issue
Block a user