This commit is contained in:
wangchuxiao
2023-01-30 16:55:44 +08:00
parent 1b4f6054ae
commit c1d6f5809b
2 changed files with 5 additions and 5 deletions
-18
View File
@@ -1,18 +0,0 @@
package callback
import (
"Open_IM/pkg/common/constant"
server_api_params "Open_IM/pkg/proto/sdk_ws"
"github.com/golang/protobuf/proto"
)
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)
content := tips.JsonDetail
return content
} else {
return string(msg.Content)
}
}