...
|
...
|
@@ -75,7 +75,7 @@ func IComment(header *protocol.RequestHeader, request *protocol.ICommentRequest) |
|
|
}
|
|
|
}
|
|
|
if recevierId != header.UserId {
|
|
|
if err = agg.SendMsg(recevierId, "", header.CompanyId, sourceId, request.SourceType, request.Content, protocol.MsgTypeComment, request.Id); err != nil {
|
|
|
if err = agg.SendMsgWithHeader(header, recevierId, "", sourceId, request.SourceType, request.Content, protocol.MsgTypeComment, request.Id); err != nil {
|
|
|
log.Error(err)
|
|
|
orm.Rollback()
|
|
|
return
|
...
|
...
|
@@ -176,7 +176,7 @@ func Thumbsups(header *protocol.RequestHeader, request *protocol.ThumbsupsReques |
|
|
baseUserInfo *protocol.BaseUserInfo
|
|
|
)
|
|
|
rsp = &protocol.ThumbsupsResponse{}
|
|
|
if favorites, total, err = models.GetChanceFavorites(header.UserId, header.CompanyId, protocol.MarkFlagZan, request.SourceType, request.SourceId, request.LastId, request.PageSize); err != nil {
|
|
|
if favorites, total, err = models.GetChanceFavorites(0, header.CompanyId, protocol.MarkFlagZan, request.SourceType, request.SourceId, request.LastId, request.PageSize); err != nil {
|
|
|
if err == orm.ErrNoRows {
|
|
|
err = nil
|
|
|
return
|
...
|
...
|
|