fix(taoguba): response url is null (#16632)

This commit is contained in:
sirius60111
2024-09-05 17:01:03 +08:00
committed by GitHub
parent ab37b88991
commit a42d3acd6f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ async function handler(ctx) {
method: 'get',
url: item.link,
});
if (detailResponse.url.startsWith('https://www.taoguba.com.cn/topic/transfer')) {
if (detailResponse.url?.startsWith('https://www.taoguba.com.cn/topic/transfer')) {
item.description = '登录后查看完整文章';
return item;
}
+1 -1
View File
@@ -51,7 +51,7 @@ async function handler(ctx) {
method: 'get',
url: item.link,
});
if (detailResponse.url.startsWith('https://www.taoguba.com.cn/topic/transfer')) {
if (detailResponse.url?.startsWith('https://www.taoguba.com.cn/topic/transfer')) {
item.description = '登录后查看完整文章';
return item;
}