|
|
@ -117,15 +117,19 @@ func groupNotification(contentType int32, m proto.Message, sendID, groupID, recv
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tips.JsonDetail, _ = marshaler.MarshalToString(m)
|
|
|
|
tips.JsonDetail, _ = marshaler.MarshalToString(m)
|
|
|
|
|
|
|
|
var nickname string
|
|
|
|
from, err := imdb.GetUserByUserID(sendID)
|
|
|
|
if utils.IsContain(sendID, config.Config.Manager.AppManagerUid) {
|
|
|
|
if err != nil {
|
|
|
|
nickname = sendID
|
|
|
|
log.Error(operationID, "GetUserByUserID failed ", err.Error(), sendID)
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
from, err := imdb.GetUserByUserID(sendID)
|
|
|
|
nickname := ""
|
|
|
|
if err != nil {
|
|
|
|
if from != nil {
|
|
|
|
log.Error(operationID, "GetUserByUserID failed ", err.Error(), sendID)
|
|
|
|
nickname = from.Nickname
|
|
|
|
}
|
|
|
|
|
|
|
|
if from != nil {
|
|
|
|
|
|
|
|
nickname = from.Nickname
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
to, err := imdb.GetUserByUserID(recvUserID)
|
|
|
|
to, err := imdb.GetUserByUserID(recvUserID)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
log.NewWarn(operationID, "GetUserByUserID failed ", err.Error(), recvUserID)
|
|
|
|
log.NewWarn(operationID, "GetUserByUserID failed ", err.Error(), recvUserID)
|
|
|
|