Skip to content

Commit

Permalink
fix(route): 修复 米游社官方公告 路由的接口错误 (DIYgod#17461)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoMeiYouRen authored Nov 5, 2024
1 parent 9dfeba7 commit 7ea07bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/routes/mihoyo/bbs/official.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ class MiHoYoOfficialError extends Error {

const getNewsList = async ({ gids, type, page_size, last_id }) => {
const query = new URLSearchParams({
client_type: '4',
gids,
type,
page_size,
last_id,
}).toString();
const url = `https://bbs-api.miyoushe.com/post/wapi/getNewsList?${query}`;
const url = `https://bbs-api-static.miyoushe.com/painter/wapi/getNewsList?${query}`;
const response = await got({
method: 'get',
url,
Expand Down

0 comments on commit 7ea07bc

Please sign in to comment.