From 09c5216f6024f1d324be958ea5a5faf86dd84e53 Mon Sep 17 00:00:00 2001 From: shanshanzhong Date: Tue, 9 Jun 2026 03:30:57 -0700 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D(#14):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=20USDT=20=E6=8F=90=E7=8E=B0=E6=96=B9=E5=BC=8F=E6=9E=9A?= =?UTF-8?q?=E4=B8=BE=E5=8F=A3=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/src/sections/withdrawal/index.tsx | 6 ++--- .../src/sections/user/affiliate/index.tsx | 23 ++++++------------- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/apps/admin/src/sections/withdrawal/index.tsx b/apps/admin/src/sections/withdrawal/index.tsx index 48a2415..843d79f 100644 --- a/apps/admin/src/sections/withdrawal/index.tsx +++ b/apps/admin/src/sections/withdrawal/index.tsx @@ -44,8 +44,7 @@ const WITHDRAWAL_METHOD_MAP: Record = { 0: "其他", 1: "支付宝", 2: "微信", - 3: "银行卡", - 4: "USDT(TRC20)", + 3: "USDT(TRC20)", }; const rejectSchema = z.object({ @@ -144,8 +143,7 @@ export default function WithdrawalPage() { const methodOptions = [ { value: "1", label: "支付宝" }, { value: "2", label: "微信" }, - { value: "3", label: "银行卡" }, - { value: "4", label: "USDT(TRC20)" }, + { value: "3", label: "USDT(TRC20)" }, { value: "0", label: "其他" }, ]; diff --git a/apps/user/src/sections/user/affiliate/index.tsx b/apps/user/src/sections/user/affiliate/index.tsx index ff09378..bb57190 100644 --- a/apps/user/src/sections/user/affiliate/index.tsx +++ b/apps/user/src/sections/user/affiliate/index.tsx @@ -63,8 +63,7 @@ import { useGlobalStore } from "@/stores/global"; const WITHDRAWAL_METHODS = [ { value: 1, label: "支付宝" }, { value: 2, label: "微信" }, - { value: 3, label: "银行卡" }, - { value: 4, label: "USDT(TRC20)" }, + { value: 3, label: "USDT(TRC20)" }, { value: 0, label: "其他" }, ] as const; @@ -158,14 +157,11 @@ const withdrawalFormSchema = z path: ["qr_code_url"], }); } - } else if (data.method === 3 || data.method === 4) { + } else if (data.method === 3) { if (!data.account) { ctx.addIssue({ code: z.ZodIssueCode.custom, - message: - data.method === 4 - ? "USDT(TRC20) 地址为必填" - : "银行卡收款账号为必填", + message: "USDT(TRC20) 地址为必填", path: ["account"], }); } @@ -466,9 +462,7 @@ export default function Affiliate() { /> )} - {(watchedMethod === 3 || - watchedMethod === 4 || - watchedMethod === 0) && ( + {(watchedMethod === 3 || watchedMethod === 0) && ( 收款账号 - {(watchedMethod === 3 || - watchedMethod === 4) && ( + {watchedMethod === 3 && ( * @@ -486,11 +479,9 @@ export default function Affiliate() {