This commit is contained in:
aozhiwei 2023-07-13 16:44:11 +08:00
parent a2d4c41a2f
commit 8141751474
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ class PullBcEvent extends BaseService {
while (true) { while (true) {
const nowTime = utils.getUtcTime(); const nowTime = utils.getUtcTime();
const returnValues = event['returnValues']; const returnValues = event['returnValues'];
const hashCode = ''; const hashCode = await this.calcHashCode(utils.jsonEncode(event));
const {err} = await dbpool.execBcEventConn( const {err} = await dbpool.execBcEventConn(
app, app,
'upsert', 'upsert',
@ -238,7 +238,7 @@ class PullBcEvent extends BaseService {
return logHead; return logHead;
} }
async calcHash(data) { async calcHashCode(data) {
return utils.sha1Str(data.toLowerCase().split("").sort().join('')); return utils.sha1Str(data.toLowerCase().split("").sort().join(''));
} }

2
third_party/j7 vendored

@ -1 +1 @@
Subproject commit 90bc1d4fe9d25725c9de657e24b374c481b5e3c3 Subproject commit c6aca25455dce4a1677adfca5b9ec3b5785f3b25