mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix: Cannot read properties of null (reading 'is_liked')
This commit is contained in:
parent
eafa7c7ae4
commit
d9dba6f0ff
@ -63,7 +63,7 @@ function parseDynamicCard(dynamic_detail_card) {
|
||||
/**临时储存单个动态中的信息 */
|
||||
let obj = {};
|
||||
const { desc, card, extension, extend_json = "{}", display = {} } = dynamic_detail_card
|
||||
, { is_liked = 1, user_profile = {} } = desc
|
||||
, { is_liked = 1, user_profile = {} } = desc || {}
|
||||
, { info = {} } = user_profile
|
||||
, cardToJson = strToJson(card)
|
||||
, extendjsonToJson = strToJson(extend_json)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user