mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-24 23:42:40 +08:00
fix: new domain for popiask (#5418)
This commit is contained in:
@@ -2177,7 +2177,7 @@
|
||||
},
|
||||
],
|
||||
},
|
||||
'popiask.cn': {
|
||||
'popiapp.cn': {
|
||||
_name: 'Popi 提问箱',
|
||||
www: [
|
||||
{
|
||||
|
||||
@@ -6,9 +6,9 @@ module.exports = async (ctx) => {
|
||||
|
||||
const getUserInfo = await got({
|
||||
method: 'get',
|
||||
url: `https://apiv3.popiask.cn/unuser/user/${sharecode}`,
|
||||
url: `https://apiv3.popiapp.cn/unuser/user/${sharecode}`,
|
||||
headers: {
|
||||
Referer: `https://www.popiask.cn/${sharecode}`,
|
||||
Referer: `https://www.popiapp.cn/${sharecode}`,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -18,9 +18,9 @@ module.exports = async (ctx) => {
|
||||
|
||||
const getQuestionFromUser = await got({
|
||||
method: 'get',
|
||||
url: `https://apiv3.popiask.cn/unuser/getQuestionFromUser/${sharecode}?pageSize=${pagesize}`,
|
||||
url: `https://apiv3.popiapp.cn/unuser/getQuestionFromUser/${sharecode}?pageSize=${pagesize}`,
|
||||
headers: {
|
||||
Referer: `https://www.popiask.cn/${sharecode}`,
|
||||
Referer: `https://www.popiapp.cn/${sharecode}`,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -28,14 +28,14 @@ module.exports = async (ctx) => {
|
||||
|
||||
ctx.state.data = {
|
||||
title: `${nickname} 的 popiask 提问箱`,
|
||||
link: `https://www.popiask.cn/${sharecode}`,
|
||||
link: `https://www.popiapp.cn/${sharecode}`,
|
||||
description: `${production} ${description}`,
|
||||
item: data.map((item) => ({
|
||||
title: item.title,
|
||||
description: `${item.title}<br>(${item.created_at})<br><br><b>答:</b><br>${item.answer.txt_content}<br>(${new Date(item.answer_at * 1000).toLocaleString()})`,
|
||||
guid: item.answer_at,
|
||||
pubDate: new Date(item.answer_at * 1000).toUTCString(),
|
||||
link: `https://www.popiask.cn/answered.html?sharecode=${sharecode}&dynamicId=${item.visit_code}`,
|
||||
link: `https://www.popiapp.cn/answered.html?sharecode=${sharecode}&dynamicId=${item.visit_code}`,
|
||||
})),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user