删除无用配置

This commit is contained in:
kehaoyuan
2019-07-15 11:48:22 +08:00
parent 35c4fa1209
commit 5b639d78cf
8 changed files with 8 additions and 257 deletions

View File

@ -386,16 +386,16 @@ public class MessageDetailAdapter extends BaseRecyclerAdapter<ViewHolder> {
CheckLoginUtils.checkLogin(mContext, "资讯文章详情-评论详情-点赞",
() -> CommentUtils.postVote(mContext, finalCommentEntity, holder.commentLikeCountTv,
holder.commentLikeIv, () -> {
int index1 = (finalCommentPosition / 10) * 10;
int index1 = (finalCommentPosition / 10); // todo index1 有可能不等于 page
//获取需要修改缓存的链接
String cacheUrl;
if (finalIsHotComment) {
cacheUrl = StringUtils.buildString(Config.COMMENT_HOST, "article/", mConcernEntity.getId(),
"/comment?order=hot&limit=10", "&offset=0"); // 热门评论固定链接
cacheUrl = StringUtils.buildString(Config.API_HOST, "article/", mConcernEntity.getId(),
"/comments?filter=order:hot&page_size=10", "&page=1"); // 热门评论固定链接
} else {
cacheUrl = StringUtils.buildString(Config.COMMENT_HOST, "article/", mConcernEntity.getId(),
"/comment?limit=10&offset=", String.valueOf(index1));
cacheUrl = StringUtils.buildString(Config.API_HOST, "article/", mConcernEntity.getId(),
"/comments?page_size=10&page=", String.valueOf(index1));
}
modifyVolleyCache(finalCommentEntity.getId(), cacheUrl); //修改缓存