mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
feat: typo in docs, radar rule, use id as title (#4038)
This commit is contained in:
@@ -38,9 +38,9 @@ module.exports = async (ctx) => {
|
||||
// Maybe we can look into isCheck, condition, and state :)
|
||||
// But I just want to make it work for now.
|
||||
ctx.state.data = {
|
||||
title: `快递 ${company.name}-${number}`,
|
||||
title: `快递 ${company.name}-${id}`,
|
||||
link: 'https://www.kuaidi100.com',
|
||||
description: `快递 ${company.name}-${number}`,
|
||||
description: `快递 ${company.name}-${id}`,
|
||||
item: data.map((item) => ({
|
||||
title: item.context,
|
||||
description: item.context,
|
||||
|
||||
@@ -205,7 +205,12 @@ module.exports = {
|
||||
// Not yet complete, don't cache for now.
|
||||
// Per owner suggestion
|
||||
} else {
|
||||
ctx.cache.set(query_key, query); // Finished, or error id
|
||||
if (query.data[0].context === '查无结果') {
|
||||
// 查无结果 appears when cookie is invaild, force update cookie.
|
||||
clearCookie(ctx);
|
||||
} else {
|
||||
ctx.cache.set(query_key, query); // Finished, or error id
|
||||
}
|
||||
}
|
||||
} else {
|
||||
query = JSON.parse(query);
|
||||
|
||||
Reference in New Issue
Block a user