Skip to content

Commit

Permalink
fix: 账号转发动态途中被系统强制登出,任务直接终止 (#392)
Browse files Browse the repository at this point in the history
Fixed #392
  • Loading branch information
shanmiteko committed Aug 20, 2024
1 parent 6c75d57 commit 74337ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core/searcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {};

Expand All @@ -332,6 +332,7 @@ function modifyDynamicRes(res) {

if (cards == null || !cards || !cards.length) {
log.warn('处理动态数据', '未找到任何动态信息');
cards = [];
}

if (typeof has_more === 'undefined'
Expand Down

0 comments on commit 74337ca

Please sign in to comment.