feat: remove wasi, close #2361
This commit is contained in:
parent
595e1eb988
commit
285ccdaca3
|
|
@ -638,10 +638,6 @@ pageClass: routes
|
|||
|
||||
<Route author="DIYgod" example="/jike/topic/584b8ac671a288001154a115" path="/jike/topic/:id" :paramsDesc="['参考 [即刻-圈子-精选](#/jike/topic/:id)']" crawlerBadge="1"/>
|
||||
|
||||
### 公众号(瓦斯来源)
|
||||
|
||||
<Route author="DIYgod" example="/wechat/wasi/5b575db858e5c4583338db11" path="/wechat/wasi/:id" :paramsDesc="['瓦斯公众号 id, 可在[瓦斯](https://w.qnmlgb.tech/wx)搜索公众号, 打开公众号页, 在 URL 中找到 id']"/>
|
||||
|
||||
### 公众号( wemp.app 来源)
|
||||
|
||||
<Route author="HenryQW" example="/wechat/wemp/36836fbe-bdec-4758-8967-7cc82722952d" path="/wechat/wemp/:id" :paramsDesc="['wemp 公众号 id, 可在搜索引擎使用 `site:wemp.app` 搜索公众号(例如: 人民日报 site:wemp.app), 打开公众号页, 在 URL 中找到 id']"/>
|
||||
|
|
|
|||
|
|
@ -445,7 +445,6 @@ router.get('/tucaoqq/post/:project/:key', require('./routes/tencent/tucaoqq/post
|
|||
router.get('/bugly/changelog/:platform', require('./routes/tencent/bugly/changelog'));
|
||||
|
||||
// wechat
|
||||
router.get('/wechat/wasi/:id', require('./routes/tencent/wechat/wasi'));
|
||||
router.get('/wechat/wemp/:id', require('./routes/tencent/wechat/wemp'));
|
||||
router.get('/wechat/csm/:id', require('./routes/tencent/wechat/csm'));
|
||||
router.get('/wechat/announce', require('./routes/tencent/wechat/announce'));
|
||||
|
|
|
|||
|
|
@ -1,41 +0,0 @@
|
|||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const { id } = ctx.params;
|
||||
const url = `https://qnmlgb.tech/authors/${id}`;
|
||||
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url,
|
||||
});
|
||||
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.ae');
|
||||
|
||||
ctx.state.data = {
|
||||
title: `${$('#spider > div:nth-child(1) > div:nth-child(1)')
|
||||
.text()
|
||||
.trim()}微信公众号`,
|
||||
link: url,
|
||||
description: $('#spider > div:nth-child(2)')
|
||||
.text()
|
||||
.trim(),
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((i, ele) => {
|
||||
const $ = cheerio.load(ele);
|
||||
const link = $('a').attr('href');
|
||||
|
||||
return {
|
||||
title: $('.pretty')
|
||||
.text()
|
||||
.trim(),
|
||||
link: `https://q.qnmlgb.tech/w/api${link}`,
|
||||
guid: `https://q.qnmlgb.tech/w/api${link}`,
|
||||
};
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
Loading…
Reference in New Issue