fix: 适应api更改,解决最新公告没有显示的问题(公主连接国服公告) (#4728)
This commit is contained in:
@@ -3,7 +3,7 @@ const got = require('@/utils/got');
|
||||
module.exports = async (ctx) => {
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: 'https://api.biligame.com/news/list?gameExtensionId=267&positionId=2&typeId=1&pageNum=1&pageSize=5',
|
||||
url: `https://api.biligame.com/news/list?gameExtensionId=267&positionId=2&typeId=&pageNum=1&pageSize=5`,
|
||||
});
|
||||
const data = response.data;
|
||||
ctx.state.data = {
|
||||
|
||||
Reference in New Issue
Block a user