正在显示
1 个修改的文件
包含
9 行增加
和
6 行删除
@@ -167,11 +167,11 @@ func Comments(header *protocol.RequestHeader, request *protocol.CommentsRequest) | @@ -167,11 +167,11 @@ func Comments(header *protocol.RequestHeader, request *protocol.CommentsRequest) | ||
167 | commentIds = append(commentIds, comment.Id) | 167 | commentIds = append(commentIds, comment.Id) |
168 | rsp.Comments = append(rsp.Comments, item) | 168 | rsp.Comments = append(rsp.Comments, item) |
169 | } | 169 | } |
170 | - if len(commentIds) > 0 { | ||
171 | - if !utils.ExecuteSqlByRoll(true, agg.GetIncrementSqlBatch("comment", "view_total", 1, commentIds...)) { | ||
172 | - // | ||
173 | - } | ||
174 | - } | 170 | + //if len(commentIds) > 0 { |
171 | + // if !utils.ExecuteSqlByRoll(true, agg.GetIncrementSqlBatch("comment", "view_total", 1, commentIds...)) { | ||
172 | + // // | ||
173 | + // } | ||
174 | + //} | ||
175 | return | 175 | return |
176 | } | 176 | } |
177 | 177 | ||
@@ -228,7 +228,7 @@ func CommentDetailsSingle(header *protocol.RequestHeader, request *protocol.Comm | @@ -228,7 +228,7 @@ func CommentDetailsSingle(header *protocol.RequestHeader, request *protocol.Comm | ||
228 | Id: comment.Id, | 228 | Id: comment.Id, |
229 | Provider: baseUserInfo, | 229 | Provider: baseUserInfo, |
230 | Content: comment.Content, | 230 | Content: comment.Content, |
231 | - CreateTime: comment.CreateAt.Unix(), | 231 | + CreateTime: comment.CreateAt.Unix() * 1000, |
232 | ViewTotal: comment.ViewTotal, | 232 | ViewTotal: comment.ViewTotal, |
233 | ZanTotal: comment.ZanTotal, | 233 | ZanTotal: comment.ZanTotal, |
234 | CommentTotal: comment.CommentTotal, | 234 | CommentTotal: comment.CommentTotal, |
@@ -237,6 +237,9 @@ func CommentDetailsSingle(header *protocol.RequestHeader, request *protocol.Comm | @@ -237,6 +237,9 @@ func CommentDetailsSingle(header *protocol.RequestHeader, request *protocol.Comm | ||
237 | if exists, _ = models.ExitsChanceFavorite(header.UserId, header.CompanyId, comment.Id, protocol.MarkFlagZan); exists { | 237 | if exists, _ = models.ExitsChanceFavorite(header.UserId, header.CompanyId, comment.Id, protocol.MarkFlagZan); exists { |
238 | rsp.Comment.IsZan = true | 238 | rsp.Comment.IsZan = true |
239 | } | 239 | } |
240 | + if !utils.ExecuteSqlByRoll(true, agg.GetIncrementSqlBatch("comment", "view_total", 1, []int64{request.Id}...)) { | ||
241 | + // | ||
242 | + } | ||
240 | return | 243 | return |
241 | } | 244 | } |
242 | 245 |
-
请 注册 或 登录 后发表评论