作者 yangfu

评论时间排序修改

... ... @@ -215,7 +215,7 @@ where user_id =? and (?=0 or id<?)
)a left outer join chance b on a.source_id = b.id and source_type=1
)a left outer join chance_data b on a.source_id = b.chance_id and source_type = 1
)a left outer join comment b on a.source_id = b.id and a.source_type=2
order by create_at desc
order by comment_time desc
limit ?`)
sqlCount := `select count(0) from comment
... ...