This commit is contained in:
aozhiwei 2023-07-11 15:27:27 +08:00
parent 1262e4cb76
commit d0111af164
2 changed files with 4 additions and 3 deletions

View File

@ -101,11 +101,12 @@ class Activate721Nft extends BaseEventProcess {
}
async updateGameDbInfo(transId, itemUniId, itemId, tokenId, tokenType) {
const {err, gameDbConn} = await app.getDbConn(constant.GAMEDB_NAME);
const {err, conn} = await app.getDbConn(constant.GAMEDB_NAME);
if (err) {
this.throwError('gamedb connection err:' + err);
return;
}
const gameDbConn = conn;
try {
try {
let tblName = '';

View File

@ -108,7 +108,7 @@ class BaseEventProcess {
],
[
['status', 0],
['refresh_count', () => {
['!refresh_count', () => {
return 'refresh_count + 1';
}],
['modifytime', nowTime]
@ -119,7 +119,7 @@ class BaseEventProcess {
['token_id', tokenId],
['status', 0],
['refresh_count', 1],
['createtime', nowTime]
['createtime', nowTime],
['modifytime', nowTime]
]
);