diff --git a/lib/routes/douyin/user.js b/lib/routes/douyin/user.js index cfd4640cb9..9af9f945c7 100644 --- a/lib/routes/douyin/user.js +++ b/lib/routes/douyin/user.js @@ -16,7 +16,7 @@ module.exports = async (ctx) => { list: null, }; - page.goto(`https://www.douyin.com/share/user/${id}`) + page.goto(`https://www.iesdouyin.com/share/user/${id}`) .then(() => { page.click('.user-tab').catch(() => {}); }) @@ -24,7 +24,7 @@ module.exports = async (ctx) => { page.on('response', (response) => { const req = response.request(); - if (req.url().match(`www.douyin.com/share/user/${id}`)) { + if (req.url().match(`www.iesdouyin.com/share/user/${id}`)) { response.text().then((text) => { const $ = cheerio.load(text); result.name = $('.nickname').text(); @@ -34,7 +34,7 @@ module.exports = async (ctx) => { browser.close(); } }); - } else if (req.url().match('www.douyin.com/web/api/v2/aweme/post')) { + } else if (req.url().match('www.iesdouyin.com/web/api/v2/aweme/post')) { response.json().then((data) => { result.list = data; if (result.name) { @@ -48,7 +48,7 @@ module.exports = async (ctx) => { ctx.state.data = { title: `${data.name}的抖音`, - link: `https://www.douyin.com/share/user/${id}`, + link: `https://www.iesdouyin.com/share/user/${id}`, description: data.description, item: data.list && data.list.aweme_list.map(formatItem), };