|
|
|
@ -122,7 +122,7 @@ define(['mui', 'app', 'ajaxUtil', 'jsencrypt'], function(mui, app, ajaxUtil, jse |
|
|
|
|
eos: { |
|
|
|
|
//请求充值金額
|
|
|
|
|
WALLET_RECHARGE: { |
|
|
|
|
getUrl: btcUrl + "wallet/resetWallet", |
|
|
|
|
getUrl: eosUrl + "wallet/resetWallet", |
|
|
|
|
getType: type.POST |
|
|
|
|
}, |
|
|
|
|
//请求所有钱包信息
|
|
|
|
@ -291,22 +291,27 @@ define(['mui', 'app', 'ajaxUtil', 'jsencrypt'], function(mui, app, ajaxUtil, jse |
|
|
|
|
fun(moduleType(obj.moduleType, data.data)); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//充值重置
|
|
|
|
|
getRecharge: function(obj, fun) { |
|
|
|
|
console.log(JSON.stringify(obj)); |
|
|
|
|
var params = { |
|
|
|
|
eth: { |
|
|
|
|
addr: obj.addr |
|
|
|
|
addr: obj.addr, |
|
|
|
|
walletType:obj.walletType, |
|
|
|
|
tokenId:obj.tokenId |
|
|
|
|
}, |
|
|
|
|
eos: { |
|
|
|
|
addr: obj.addr |
|
|
|
|
addr: obj.addr, |
|
|
|
|
walletType:obj.walletType, |
|
|
|
|
tokenId:obj.tokenId |
|
|
|
|
}, |
|
|
|
|
btc: { |
|
|
|
|
addr: obj.addr |
|
|
|
|
addr: obj.addr, |
|
|
|
|
walletType:obj.walletType, |
|
|
|
|
tokenId:obj.tokenId |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
params[obj.moduleType].walletType = obj.walletType; |
|
|
|
|
params[obj.moduleType].tokenId = obj.moduleType; |
|
|
|
|
ajaxUtil.send(walletApi[obj.moduleType].WALLET_RECHARGE, params[obj.moduleType]).then(function(data) { |
|
|
|
|
console.log(JSON.stringify(data)); |
|
|
|
|
fun(data); |
|
|
|
|