1
This commit is contained in:
parent
c7a7205f60
commit
0c15da5be1
@ -34,6 +34,14 @@ async function recharge(session) {
|
|||||||
session.rspErr(500, 'passport_address error');
|
session.rspErr(500, 'passport_address error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!amount) {
|
||||||
|
session.rspErr(500, 'amount error');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!orderId) {
|
||||||
|
session.rspErr(500, 'order_id error');
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const currencyMeta = bc.getContractByName(currencyName);
|
const currencyMeta = bc.getContractByName(currencyName);
|
||||||
if (!currencyMeta) {
|
if (!currencyMeta) {
|
||||||
@ -88,6 +96,14 @@ async function recharge(session) {
|
|||||||
nowTime,
|
nowTime,
|
||||||
nonce
|
nonce
|
||||||
);
|
);
|
||||||
|
console.log(
|
||||||
|
accountAddress,
|
||||||
|
passportAddress,
|
||||||
|
orderId,
|
||||||
|
currencyAddress,
|
||||||
|
amount,
|
||||||
|
nowTime,
|
||||||
|
nonce);
|
||||||
let data = instance.methods.buy(
|
let data = instance.methods.buy(
|
||||||
passportAddress,
|
passportAddress,
|
||||||
orderId,
|
orderId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user