diff --git a/docs/other.md b/docs/other.md index 8340ea1652..b0adb0efe1 100644 --- a/docs/other.md +++ b/docs/other.md @@ -524,20 +524,6 @@ type 为 all 时,category 参数不支持 cost 和 free -## 快递 - -### 快递 - - - -::: warning 注意 - -快递送达后请及时取消订阅, 以免浪费服务器资源 - -::: - - - ## 老司机 ### 首页 diff --git a/lib/router.js b/lib/router.js index 1748cd2842..407a42b2ae 100644 --- a/lib/router.js +++ b/lib/router.js @@ -83,9 +83,6 @@ router.get('/juejin/shares/:userId', require('./routes/juejin/shares')); // 自如 router.get('/ziroom/room/:city/:iswhole/:room/:keyword', require('./routes/ziroom/room')); -// 快递 -router.get('/express/:company/:number', require('./routes/express/express')); - // 简书 router.get('/jianshu/home', require('./routes/jianshu/home')); router.get('/jianshu/trending/:timeframe', require('./routes/jianshu/trending')); diff --git a/lib/routes/express/express.js b/lib/routes/express/express.js deleted file mode 100644 index 2eb206ab0c..0000000000 --- a/lib/routes/express/express.js +++ /dev/null @@ -1,28 +0,0 @@ -const got = require('@/utils/got'); - -module.exports = async (ctx) => { - const company = ctx.params.company; - const number = ctx.params.number; - - const response = await got({ - method: 'get', - url: `https://www.kuaidi100.com/query?type=${company}&postid=${number}`, - headers: { - Referer: 'https://www.kuaidi100.com', - }, - }); - - const data = response.data.data; - - ctx.state.data = { - title: `快递 ${company}-${number}`, - link: 'https://www.kuaidi100.com', - description: `快递 ${company}-${number}`, - item: data.map((item) => ({ - title: item.context, - description: item.context, - pubDate: new Date(item.time || item.ftime).toUTCString(), - link: item.context, - })), - }; -};