chore: change app version

This commit is contained in:
Disy
2024-02-19 18:31:10 +08:00
parent acb1ec3871
commit 82e3ca113d
2 changed files with 10 additions and 3 deletions

View File

@@ -87,5 +87,5 @@ export function getStrangerByUin(uin: string) {
}
}
export const version = "v3.3.1"
export const version = "v3.4.0"
export const heartInterval = 15000 // 毫秒

View File

@@ -266,9 +266,16 @@ function initReverseWebsocket() {
}
}
export function wsReply(wsClient: websocket.WebSocket | ReconnectingWebsocket, data: OB11Return<any> | PostMsgType) {
export function wsReply(wsClient: websocket.WebSocket | ReconnectingWebsocket, data: OB11WebsocketResponse | PostMsgType) {
try {
wsClient.send(JSON.stringify(data))
let packet = Object.assign({
echo: ""
}, data);
if (!packet.echo) {
packet.echo = "";
}
wsClient.send(JSON.stringify(packet))
log("ws 消息上报", data)
} catch (e) {
log("websocket 回复失败", e)