fix:bug 购买时非eth时, 金额设置错误的bug

This commit is contained in:
zhl 2023-06-08 18:25:13 +08:00
parent 72783bd183
commit 69511b567b

View File

@ -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