From cdd7c9387f2950273dcf25d7cc84ae0119994fda Mon Sep 17 00:00:00 2001 From: Cloud Date: Mon, 16 Sep 2019 17:17:39 +0800 Subject: [PATCH] fix: ignore_js_op in /dsndsht23/yzwmyc (#3092) --- docs/new-media.md | 24 ++++++++++++------------ lib/routes/dsndsht23/index.js | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/new-media.md b/docs/new-media.md index 5d48e46d28..8a0a529df2 100644 --- a/docs/new-media.md +++ b/docs/new-media.md @@ -618,18 +618,6 @@ pageClass: routes -## 网易号 - -### 更新 - - - -1. 在[网易号搜索页面](https://dy.163.com/v2/media/tosearch.html) 搜索想要订阅的网易号。 -2. 打开网易号文章页面。 -3. 通过浏览器控制台执行 `$('#contain').dataset.wemediaid`,返回的即为网易号 ID。 - - - ## 探物 ### 产品 @@ -692,6 +680,18 @@ pageClass: routes +## 网易号 + +### 更新 + + + +1. 在[网易号搜索页面](https://dy.163.com/v2/media/tosearch.html) 搜索想要订阅的网易号。 +2. 打开网易号文章页面。 +3. 通过浏览器控制台执行 `$('#contain').dataset.wemediaid`,返回的即为网易号 ID。 + + + ## 维基百科 ### 中国大陆新闻动态 diff --git a/lib/routes/dsndsht23/index.js b/lib/routes/dsndsht23/index.js index 13665830de..83aeb5b9e9 100644 --- a/lib/routes/dsndsht23/index.js +++ b/lib/routes/dsndsht23/index.js @@ -77,7 +77,7 @@ module.exports = async (ctx) => { $(images[k]).replaceWith(``); } } - const description = postMessage.html(); + const description = (postMessage.html() || '原帖已被删除').replace(/ignore_js_op/g, 'div'); const enclosureUrl = postMessage.find('div.blockcode li').text(); const single = {