fix:bug 购买时非eth时, 金额设置错误的bug
This commit is contained in:
parent
72783bd183
commit
69511b567b
@ -132,7 +132,8 @@ class AlchemyOutController extends BaseController {
|
|||||||
if (record.crypto != crypto || record.network != network || record.address != address) {
|
if (record.crypto != crypto || record.network != network || record.address != address) {
|
||||||
return errorRes('params mismatch')
|
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.cryptoPrice = cryptoPrice
|
||||||
record.usdtAdmount = usdtAmount
|
record.usdtAdmount = usdtAmount
|
||||||
record.status = PayStatus.TRANSFERING
|
record.status = PayStatus.TRANSFERING
|
||||||
|
Loading…
x
Reference in New Issue
Block a user