fix: new domain for popiask (#5418)

This commit is contained in:
AgFlore
2020-08-18 21:14:46 +01:00
committed by GitHub
parent 49535232b6
commit 9456ffefd6
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -2177,7 +2177,7 @@
},
],
},
'popiask.cn': {
'popiapp.cn': {
_name: 'Popi 提问箱',
www: [
{
+6 -6
View File
@@ -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}`,
})),
};
};