From 74337ca493a93ef9a70bad7b1009f194a3ce205f Mon Sep 17 00:00:00 2001 From: shanmite Date: Tue, 20 Aug 2024 08:45:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B4=A6=E5=8F=B7=E8=BD=AC=E5=8F=91?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E9=80=94=E4=B8=AD=E8=A2=AB=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=BC=BA=E5=88=B6=E7=99=BB=E5=87=BA=EF=BC=8C=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E7=BB=88=E6=AD=A2=20(#392)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed #392 --- lib/core/searcher.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/searcher.js b/lib/core/searcher.js index adcad27..a3242e7 100644 --- a/lib/core/searcher.js +++ b/lib/core/searcher.js @@ -321,7 +321,7 @@ function oldParseDynamicCard(dynamic_detail_card) { * @returns {{modifyDynamicResArray: UsefulDynamicInfo[], nextinfo: {has_more: number, next_offset: string}} | UsefulDynamicInfo |null} */ function modifyDynamicRes(res) { - const + let { data, code } = utils.strToJson(res), { cards, has_more, offset } = data || {}; @@ -332,6 +332,7 @@ function modifyDynamicRes(res) { if (cards == null || !cards || !cards.length) { log.warn('处理动态数据', '未找到任何动态信息'); + cards = []; } if (typeof has_more === 'undefined'