diff --git a/lib/routes/socialclub/events.js b/lib/routes/socialclub/events.js index 4c53fb127..1535e096d 100644 --- a/lib/routes/socialclub/events.js +++ b/lib/routes/socialclub/events.js @@ -2,7 +2,7 @@ const gameList = ['GTAV', 'RDR2']; module.exports = async (ctx) => { const gameId = gameList.includes(ctx.params.game) ? ctx.params.game : ''; - const baseUrl = `https://zh.socialclub.rockstargames.com/events/eventlisting?pageId=1&gameId=${gameId}`; + const baseUrl = `https://zh-cn.socialclub.rockstargames.com/events/eventlisting?pageId=1&gameId=${gameId}`; // R星的傻逼防爬 const browser = await require('@/utils/puppeteer')(); const page = await browser.newPage(); @@ -14,8 +14,8 @@ module.exports = async (ctx) => { const { events } = JSON.parse(jsonStr); ctx.state.data = { - title: 'Online Events - Rockstar Games Social Club', - link: 'https://zh.socialclub.rockstargames.com/events?gameId=' + gameId, + title: '在线活动 - Rockstar Games Social Club', + link: 'https://zh-cn.socialclub.rockstargames.com/events?gameId=' + gameId, item: events && events.map((x) => ({ @@ -23,7 +23,7 @@ module.exports = async (ctx) => { category: x.eventType, description: (x.imgUrl ? `
` : '') + x.description, pubDate: new Date(x.startDate).getTime() / 1000, - link: `https://zh.socialclub.rockstargames.com/events/${x.urlHash}/${x.slug}/1`, + link: `https://zh-cn.socialclub.rockstargames.com/events/${x.urlHash}/${x.slug}/1`, })), }; };