diff --git a/docs/social-media.md b/docs/social-media.md index 7c976ba9d..f40131945 100644 --- a/docs/social-media.md +++ b/docs/social-media.md @@ -638,10 +638,6 @@ pageClass: routes -### 公众号(瓦斯来源) - - - ### 公众号( wemp.app 来源) diff --git a/lib/router.js b/lib/router.js index 6518f8951..074c2c48b 100644 --- a/lib/router.js +++ b/lib/router.js @@ -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')); diff --git a/lib/routes/tencent/wechat/wasi.js b/lib/routes/tencent/wechat/wasi.js deleted file mode 100644 index 34a351a3e..000000000 --- a/lib/routes/tencent/wechat/wasi.js +++ /dev/null @@ -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(), - }; -};