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