1
This commit is contained in:
parent
4c0afd89c0
commit
78ea87dc8d
@ -24,6 +24,7 @@ class Redeem721 extends BaseEventProcess {
|
|||||||
'action': 'redeem721',
|
'action': 'redeem721',
|
||||||
'data': utils.jsonEncode(returnValues),
|
'data': utils.jsonEncode(returnValues),
|
||||||
'redee_time': utils.getUtcTime(),
|
'redee_time': utils.getUtcTime(),
|
||||||
|
'txhash': this.getTxHash(),
|
||||||
'net_id': this.getNetId()
|
'net_id': this.getNetId()
|
||||||
};
|
};
|
||||||
await this.callGameApi
|
await this.callGameApi
|
||||||
|
@ -19,6 +19,7 @@ class BaseEventProcess {
|
|||||||
this.eventProc = proc;
|
this.eventProc = proc;
|
||||||
this.eventDb = eventDb;
|
this.eventDb = eventDb;
|
||||||
this.returnValues = utils.jsonDecode(this.getEventDb()['return_values']);
|
this.returnValues = utils.jsonDecode(this.getEventDb()['return_values']);
|
||||||
|
this.txHash = this.getEventDb()['txhash'];
|
||||||
this.bcEventConn = null;
|
this.bcEventConn = null;
|
||||||
this.bcNftConn = null;
|
this.bcNftConn = null;
|
||||||
this.gameConn = null;
|
this.gameConn = null;
|
||||||
@ -75,6 +76,10 @@ class BaseEventProcess {
|
|||||||
return this.returnValues;
|
return this.returnValues;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTxHash() {
|
||||||
|
return this.txHash;
|
||||||
|
}
|
||||||
|
|
||||||
throwError(err) {
|
throwError(err) {
|
||||||
const errMsg = this.genLogHead(err);
|
const errMsg = this.genLogHead(err);
|
||||||
throw new Error(errMsg);
|
throw new Error(errMsg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user