diff --git a/docs/other.md b/docs/other.md
index c54064f1d6..86a660657d 100644
--- a/docs/other.md
+++ b/docs/other.md
@@ -256,6 +256,10 @@ type 为 all 时,category 参数不支持 cost 和 free
+### channel
+
+
+
## 爱范儿 ifanr
### 爱范儿频道
diff --git a/lib/router.js b/lib/router.js
index 2f8251103e..73baca5441 100644
--- a/lib/router.js
+++ b/lib/router.js
@@ -1215,7 +1215,7 @@ router.get('/checkee/:dispdate', require('./routes/checkee/index'));
router.get('/iresearch/report', require('./routes/iresearch/report'));
// ZAKER
-router.get('/zaker/source/:id', require('./routes/zaker/source'));
+router.get('/zaker/:type/:id', require('./routes/zaker/source'));
// Matters
router.get('/matters/topics', require('./routes/matters/topics'));
diff --git a/lib/routes/zaker/source.js b/lib/routes/zaker/source.js
index 6243c70a59..c2d77e4a33 100644
--- a/lib/routes/zaker/source.js
+++ b/lib/routes/zaker/source.js
@@ -3,8 +3,9 @@ const cheerio = require('cheerio');
const date_util = require('@/utils/date');
module.exports = async (ctx) => {
+ const type = ctx.params.type || 'source';
const id = ctx.params.id;
- const link = `http://www.myzaker.com/source/${id}`;
+ const link = `http://www.myzaker.com/${type}/${id}`;
const response = await got.get(link);
const $ = cheerio.load(response.data);
@@ -40,10 +41,13 @@ module.exports = async (ctx) => {
method: 'get',
headers: {
Referer: link,
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0',
},
});
const $ = cheerio.load(response.data);
+ $('img').each((index, elem) => {
+ const $elem = $(elem);
+ $elem.attr('referrerpolicy', 'no-referrer');
+ });
const description = $('div.article_content div')
.html()
.replace(/data-original/g, `src`);