作者 yangfu

评论时间排序修改

@@ -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,