[*] 日常优化

This commit is contained in:
acgist
2023-08-31 07:32:52 +08:00
parent 96e50a22db
commit 4cd1e5b08d
4 changed files with 31 additions and 20 deletions

View File

@@ -374,8 +374,11 @@ class Taoyao {
on(message) {
const me = this;
// 解构
const { header, body } = message;
const { id, signal } = header;
const { code, header, body } = message;
const { id, signal } = header;
if(code !== "0000") {
console.warn("信令错误", message);
}
// 请求回调
if (me.callbackMapping.has(id)) {
try {