mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 21:18:57 +08:00
feat: remove express, close #2261
This commit is contained in:
@@ -524,20 +524,6 @@ type 为 all 时,category 参数不支持 cost 和 free
|
|||||||
|
|
||||||
<Route author="xapool" example="/aqicn/beijing" path="/aqicn/:city" :paramsDesc="['城市拼音或地区 ID,详见[aqicn.org](http://aqicn.org/city/)']"/>
|
<Route author="xapool" example="/aqicn/beijing" path="/aqicn/:city" :paramsDesc="['城市拼音或地区 ID,详见[aqicn.org](http://aqicn.org/city/)']"/>
|
||||||
|
|
||||||
## 快递
|
|
||||||
|
|
||||||
### 快递
|
|
||||||
|
|
||||||
<Route author="DIYgod" example="/express/youzhengguoji/CV054432809US" path="/express/:company/:number" :paramsDesc="['快递公司代码, 参考 [API URL 所支持的快递公司及参数说明](https://www.kuaidi100.com/download/api_kuaidi100_com%2820140729%29.doc)', '快递单号']">
|
|
||||||
|
|
||||||
::: warning 注意
|
|
||||||
|
|
||||||
快递送达后请及时取消订阅, 以免浪费服务器资源
|
|
||||||
|
|
||||||
:::
|
|
||||||
|
|
||||||
</Route>
|
|
||||||
|
|
||||||
## 老司机
|
## 老司机
|
||||||
|
|
||||||
### 首页
|
### 首页
|
||||||
|
|||||||
@@ -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('/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/home', require('./routes/jianshu/home'));
|
||||||
router.get('/jianshu/trending/:timeframe', require('./routes/jianshu/trending'));
|
router.get('/jianshu/trending/:timeframe', require('./routes/jianshu/trending'));
|
||||||
|
|||||||
@@ -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,
|
|
||||||
})),
|
|
||||||
};
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user