fix: origin is null

This commit is contained in:
shanmite 2026-05-29 14:07:49 +08:00
parent 2f4734c9de
commit 1c369415ef
2 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,6 @@
[![Build and push Docker images](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/docker.yml/badge.svg)](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/docker.yml) [![Build and push Docker images](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/docker.yml/badge.svg)](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/docker.yml)
[![Publishing to NPM](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/npmp.yml/badge.svg)](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/npmp.yml)
[![Mirror and run GitLab CI](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/mirror.yml/badge.svg)](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/mirror.yml) [![Mirror and run GitLab CI](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/mirror.yml/badge.svg)](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/mirror.yml)
已实现功能: 已实现功能:

View File

@ -151,6 +151,8 @@ function parseDynamicCard(data) {
/* 转发 */ /* 转发 */
if (obj.type === 1) { if (obj.type === 1) {
obj.origin = parseDynamicCard({item: ditem.orig}); obj.origin = parseDynamicCard({item: ditem.orig});
} else {
obj.origin = {};
} }
} catch (e) { } catch (e) {
log.error('动态卡片解析', e); log.error('动态卡片解析', e);