重新适配
This commit is contained in:
@@ -18,8 +18,9 @@ module.exports = {
|
||||
actions[ws.action] = ws.execute
|
||||
}
|
||||
}).then(() => ws.on('message', res => {
|
||||
if (res?.action) {
|
||||
actions[res.action]?.(ws, JSON.parse(res))
|
||||
if (res?.data) {
|
||||
const data = JSON.parse(res.data)
|
||||
!!data?.action && actions[res.action]?.(ws, data)
|
||||
}
|
||||
}))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user