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