From 600ae85998eaec63dd7dbd81d57dbaa177b11b08 Mon Sep 17 00:00:00 2001 From: uskyu Date: Sun, 19 Apr 2026 23:09:33 +0800 Subject: [PATCH] Show user ID in admin topup bills --- web/src/components/topup/modals/TopupHistoryModal.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/src/components/topup/modals/TopupHistoryModal.jsx b/web/src/components/topup/modals/TopupHistoryModal.jsx index 9659e929..1abd45df 100644 --- a/web/src/components/topup/modals/TopupHistoryModal.jsx +++ b/web/src/components/topup/modals/TopupHistoryModal.jsx @@ -161,6 +161,16 @@ const TopupHistoryModal = ({ visible, onCancel, t }) => { const columns = useMemo(() => { const baseColumns = [ + ...(userIsAdmin + ? [ + { + title: t('用户ID'), + dataIndex: 'user_id', + key: 'user_id', + render: (userId) => {userId ?? '-'}, + }, + ] + : []), { title: t('订单号'), dataIndex: 'trade_no',