修复RPC附加原始参数解析错误出错时直接错误返回

This commit is contained in:
boyce
2020-09-25 19:50:23 +08:00
parent 7b24350c7d
commit 8597d1c96e
2 changed files with 3 additions and 1 deletions

View File

@@ -92,7 +92,7 @@ func (slf *PBProcessor ) Marshal(msg interface{}) ([]byte, error){
var err error
if pMsg.msg!=nil {
pMsg.rawMsg,err = proto.Marshal(pMsg.msg.(proto.Message))
pMsg.rawMsg,err = proto.Marshal(pMsg.msg)
if err != nil {
return nil,err
}