fix(route): 斗鱼跟帖最新回复 (#10504)
This commit is contained in:
@@ -16,9 +16,16 @@ module.exports = async (ctx) => {
|
||||
});
|
||||
|
||||
const data = detailResponse.data.data;
|
||||
const apiUrl = `${rootUrl}/wbapi/web/post/comments/${id}?group_id=${data.group_id}&sink=1&page=1`;
|
||||
let apiUrl = `${rootUrl}/wbapi/web/post/comments/${id}?group_id=${data.group_id}&sink=1&page=1`;
|
||||
|
||||
const response = await got({
|
||||
let response = await got({
|
||||
method: 'get',
|
||||
url: apiUrl,
|
||||
});
|
||||
|
||||
apiUrl = `${rootUrl}/wbapi/web/post/comments/${id}?group_id=${data.group_id}&sink=1&page=${response.data.page_total}`;
|
||||
|
||||
response = await got({
|
||||
method: 'get',
|
||||
url: apiUrl,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user