From c032b79a1684e09f609b8bb3a3d93fc16fe9f171 Mon Sep 17 00:00:00 2001 From: huangzhenpc Date: Fri, 6 Mar 2026 01:55:02 +0800 Subject: [PATCH] Only show refund received button when email has refund status Co-Authored-By: Claude Opus 4.6 (1M context) --- static/script.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/script.js b/static/script.js index 54ac51a..8244986 100644 --- a/static/script.js +++ b/static/script.js @@ -722,11 +722,13 @@ class MailManager { renderRefundBtn(email) { const info = this.claudePaymentStatuses[email]; - const isReceived = info && info.refund_received === '1'; + // 只有已退款状态才显示退款到账按钮 + if (!info || !info.refund_time) return ''; + const isReceived = info.refund_received === '1'; if (isReceived) { return ``; } - return ``; + return ``; } confirmRefundToggle(email) {