作者 yangfu

评论时间排序修改

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