diff --git a/web/frontend/src/pages/DouyuTasksPage.tsx b/web/frontend/src/pages/DouyuTasksPage.tsx index 4f3b895..4d0d0d1 100644 --- a/web/frontend/src/pages/DouyuTasksPage.tsx +++ b/web/frontend/src/pages/DouyuTasksPage.tsx @@ -160,7 +160,10 @@ function bindPhaseText(phase: string, polling: boolean): string { } function goodsLabel(item: DouyuGoodsItem): string { - return `${item.name || item.commodity_id}${item.score ? ` / ${item.score}积分` : ''}`; + const stock = item.raw?.count; + const stockText = + stock != null && Number.isFinite(Number(stock)) ? ` / 库存${stock}` : ''; + return `${item.name || item.commodity_id}${item.score ? ` / ${item.score}积分` : ''}${stockText}`; } function formatWaitSeconds(seconds: number | null | undefined): string {