修复包报错 1

This commit is contained in:
yml2213
2026-07-10 16:58:59 +08:00
parent 80b8e383c7
commit 7aeaafbe75
@@ -1146,7 +1146,7 @@ function buildIndustryActionResultView(
meta?: { refundCount?: number },
): IndustryActionResultView {
const scope: IndustryActionScope = kind.startsWith('refund') ? 'refunds' : 'vouchers'
const record = asRecord(raw)
const record = asRecord(raw) ?? {}
const openApi = asOpenApiShape(record)
const voucher = asRecord(record.voucher)
const task = asRecord(record.task)