diff --git a/server/web3helper/controllers/bcservice.js b/server/web3helper/controllers/bcservice.js index 05d0231..db99e6e 100644 --- a/server/web3helper/controllers/bcservice.js +++ b/server/web3helper/controllers/bcservice.js @@ -26,8 +26,8 @@ function genIdx() { function genTokenId() { const tokenId = bcutils.genTokenId( 1006, - bcutils.BC_FUNC_GUILD, - this.nowTime, + bcutils.BC_FUNC_PRESENT, + utils.getUtcTime(), 1, genIdx() ); @@ -102,7 +102,7 @@ async function presentItem(session) { { const nowTime = utils.getUtcTime(); - const tokenId = this.genTokenId(name); + const tokenId = genTokenId(); const fieldsList = [ ['bc_mint_tokenid', tokenId], ['unikey', uniKey], @@ -116,7 +116,7 @@ async function presentItem(session) { ['createtime', nowTime], ['modifytime', nowTime] ]; - const {err} = await this.conn.insert( + const {err} = await conn.insert( 't_mint', fieldsList ); diff --git a/third_party/j7 b/third_party/j7 index d72af66..b4c9842 160000 --- a/third_party/j7 +++ b/third_party/j7 @@ -1 +1 @@ -Subproject commit d72af66b36ce9c76e4dcf7163222bfad40f88150 +Subproject commit b4c98428459cc04b89982ebd2094912c536bbf15