上传服务协议代码

This commit is contained in:
liwei1dao 2022-07-22 13:33:28 +08:00
parent 47ff3a8468
commit 1b493b6e76
2 changed files with 19 additions and 14 deletions

BIN
dist.rar

Binary file not shown.

View File

@ -430,26 +430,31 @@ export default defineComponent({
.lookup(v1.respName)
.decode(message.data.value)
messageobj = proto.lookup(v1.respName).toObject(protoobj)
// console.log(' protoobj', protoobj)
this.pushlog(
'success',
`收到回应消息: ${mainType}-${subType}-resp`,
messageobj
)
} else {
console.log('接收到消息 pushName', v1.pushName)
protoobj = proto
.lookup(v1.pushName)
.decode(message.data.value)
messageobj = proto.lookup(v1.pushName).toObject(protoobj)
}
if (v1.pushName && v1.pushName == 'NotifyErrorNotifyPush') {
this.pushlog(
'error',
`错误信息通知: ${mainType}-${subType}-resp`,
messageobj
)
} else {
this.pushlog(
'success',
`收到回应消息: ${mainType}-${subType}-resp`,
messageobj
)
if (v1.pushName && v1.pushName == 'NotifyErrorNotifyPush') {
this.pushlog(
'error',
`错误信息通知: ${mainType}-${subType}-push`,
messageobj
)
} else {
this.pushlog(
'success',
`收到回应消息: ${mainType}-${subType}-push`,
messageobj
)
}
}
}
}