正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
@@ -74,11 +74,13 @@ func IComment(header *protocol.RequestHeader, request *protocol.ICommentRequest) | @@ -74,11 +74,13 @@ func IComment(header *protocol.RequestHeader, request *protocol.ICommentRequest) | ||
74 | return | 74 | return |
75 | } | 75 | } |
76 | } | 76 | } |
77 | + if recevierId != header.UserId { | ||
77 | if err = agg.SendMsg(recevierId, "", header.CompanyId, sourceId, request.SourceType, request.Content, protocol.MsgTypeComment, request.Id); err != nil { | 78 | if err = agg.SendMsg(recevierId, "", header.CompanyId, sourceId, request.SourceType, request.Content, protocol.MsgTypeComment, request.Id); err != nil { |
78 | log.Error(err) | 79 | log.Error(err) |
79 | orm.Rollback() | 80 | orm.Rollback() |
80 | return | 81 | return |
81 | } | 82 | } |
83 | + } | ||
82 | orm.Commit() | 84 | orm.Commit() |
83 | rsp = &protocol.ICommentResponse{ | 85 | rsp = &protocol.ICommentResponse{ |
84 | Id: newComment.Id, | 86 | Id: newComment.Id, |
-
请 注册 或 登录 后发表评论