diff --git a/pkg/common/callback/callback.go b/pkg/common/callback/callback.go index 676a62a52..fa19e7961 100644 --- a/pkg/common/callback/callback.go +++ b/pkg/common/callback/callback.go @@ -3,7 +3,6 @@ package callback import ( "Open_IM/pkg/common/constant" server_api_params "Open_IM/pkg/proto/sdk_ws" - "github.com/golang/protobuf/jsonpb" "github.com/golang/protobuf/proto" ) @@ -11,12 +10,12 @@ func GetContent(msg *server_api_params.MsgData) string { if msg.ContentType >= constant.NotificationBegin && msg.ContentType <= constant.NotificationEnd { var tips server_api_params.TipsComm _ = proto.Unmarshal(msg.Content, &tips) - marshaler := jsonpb.Marshaler{ - OrigName: true, - EnumsAsInts: false, - EmitDefaults: false, - } - content, _ := marshaler.MarshalToString(&tips) + //marshaler := jsonpb.Marshaler{ + // OrigName: true, + // EnumsAsInts: false, + // EmitDefaults: false, + //} + content := tips.JsonDetail return content } else { return string(msg.Content)