mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
parent
6c75d57adb
commit
74337ca493
@ -321,7 +321,7 @@ function oldParseDynamicCard(dynamic_detail_card) {
|
|||||||
* @returns {{modifyDynamicResArray: UsefulDynamicInfo[], nextinfo: {has_more: number, next_offset: string}} | UsefulDynamicInfo |null}
|
* @returns {{modifyDynamicResArray: UsefulDynamicInfo[], nextinfo: {has_more: number, next_offset: string}} | UsefulDynamicInfo |null}
|
||||||
*/
|
*/
|
||||||
function modifyDynamicRes(res) {
|
function modifyDynamicRes(res) {
|
||||||
const
|
let
|
||||||
{ data, code } = utils.strToJson(res),
|
{ data, code } = utils.strToJson(res),
|
||||||
{ cards, has_more, offset } = data || {};
|
{ cards, has_more, offset } = data || {};
|
||||||
|
|
||||||
@ -332,6 +332,7 @@ function modifyDynamicRes(res) {
|
|||||||
|
|
||||||
if (cards == null || !cards || !cards.length) {
|
if (cards == null || !cards || !cards.length) {
|
||||||
log.warn('处理动态数据', '未找到任何动态信息');
|
log.warn('处理动态数据', '未找到任何动态信息');
|
||||||
|
cards = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof has_more === 'undefined'
|
if (typeof has_more === 'undefined'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user