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',
'data': utils.jsonEncode(returnValues),
'redee_time': utils.getUtcTime(),
'txhash': this.getTxHash(),
'net_id': this.getNetId()
};
await this.callGameApi

View File

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