删除无用配置
This commit is contained in:
@ -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); //修改缓存
|
||||
|
||||
Reference in New Issue
Block a user