This commit is contained in:
aozhiwei 2023-08-25 16:57:57 +08:00
parent 4c0afd89c0
commit 78ea87dc8d
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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);