diff --git a/docs/other.md b/docs/other.md index 0a9b17191..c64d2d467 100644 --- a/docs/other.md +++ b/docs/other.md @@ -340,6 +340,10 @@ type 为 all 时,category 参数不支持 cost 和 free +### 监管问询 + + + ## 深圳证券交易所 ### 上市公告-可转换债券 diff --git a/lib/router.js b/lib/router.js index 66a648ef1..ff63d0f74 100644 --- a/lib/router.js +++ b/lib/router.js @@ -1776,6 +1776,7 @@ router.get('/latexstudio/home', require('./routes/latexstudio/home')); // 上证债券信息网 - 可转换公司债券公告 router.get('/sse/convert/:query?', require('./routes/sse/convert')); router.get('/sse/renewal/', require('./routes/sse/renewal')); +router.get('/sse/inquire/', require('./routes/sse/inquire')); // 深圳证券交易所——上市公告 router.get('/szse/notice/', require('./routes/szse/notice')); diff --git a/lib/routes/sse/inquire.js b/lib/routes/sse/inquire.js new file mode 100644 index 000000000..1d71a5e81 --- /dev/null +++ b/lib/routes/sse/inquire.js @@ -0,0 +1,31 @@ +const got = require('@/utils/got'); +module.exports = async (ctx) => { + const RefererUrl = 'http://www.sse.com.cn/disclosure/credibility/supervision/inquiries/'; + const response = await got({ + method: 'get', + url: `http://query.sse.com.cn/commonSoaQuery.do?siteId=28&sqlId=BS_KCB_GGLL&extGGLX=&stockcode=&channelId=10743%2C10744%2C10012&extGGDL=&order=createTime%7Cdesc%2Cstockcode%7Casc&isPagination=true&pageHelp.pageSize=15&pageHelp.pageNo=1&pageHelp.beginPage=1&pageHelp.cacheSize=1&pageHelp.endPage=5&type=&_=1573371062879`, + headers: { + Referer: RefererUrl, + }, + }); + const items = response.data.result.map((item) => { + const single = { + title: item.extGSJC, + description: ` + + + + + +
公司代码 : ${item.stockcode}
公司简称 : ${item.extGSJC}
发函日期 : ${item.createTime}
监管问询类型 : ${item.extWTFL}
标题 : ${item.docTitle}
`, + pubDate: new Date(`${item.createTime} GMT`).toUTCString(), + link: `http://${item.docURL}`, + }; + return single; + }); + ctx.state.data = { + title: `上海证券交易所——监管问询`, + link: RefererUrl, + item: items, + }; +};