fix: 账号转发动态途中被系统强制登出,任务直接终止 (#392)

Fixed #392
This commit is contained in:
shanmite 2024-08-20 08:45:35 +08:00
parent 6c75d57adb
commit 74337ca493

View File

@ -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'