From 69511b567bf15f84926dd794acf9ad70e1e98e68 Mon Sep 17 00:00:00 2001 From: zhl Date: Thu, 8 Jun 2023 18:25:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:bug=20=E8=B4=AD=E4=B9=B0=E6=97=B6=E9=9D=9Ee?= =?UTF-8?q?th=E6=97=B6=EF=BC=8C=20=E9=87=91=E9=A2=9D=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/alchemyout.controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/alchemyout.controller.ts b/src/controllers/alchemyout.controller.ts index d942349..98c3353 100644 --- a/src/controllers/alchemyout.controller.ts +++ b/src/controllers/alchemyout.controller.ts @@ -132,7 +132,8 @@ class AlchemyOutController extends BaseController { if (record.crypto != crypto || record.network != network || record.address != address) { return errorRes('params mismatch') } - record.cryptoAmount = record.network.toLowerCase() === 'agor' ? '0.001' : cryptoAmount + record.cryptoAmount = + record.network.toLowerCase() === 'agor' && record.crypto.toLowerCase() === 'agor' ? '0.001' : cryptoAmount record.cryptoPrice = cryptoPrice record.usdtAdmount = usdtAmount record.status = PayStatus.TRANSFERING