This commit is contained in:
aozhiwei 2022-08-03 11:20:35 +08:00
parent 16257b9d77
commit 1e9f43dce2
2 changed files with 5 additions and 5 deletions

View File

@ -26,8 +26,8 @@ function genIdx() {
function genTokenId() { function genTokenId() {
const tokenId = bcutils.genTokenId( const tokenId = bcutils.genTokenId(
1006, 1006,
bcutils.BC_FUNC_GUILD, bcutils.BC_FUNC_PRESENT,
this.nowTime, utils.getUtcTime(),
1, 1,
genIdx() genIdx()
); );
@ -102,7 +102,7 @@ async function presentItem(session) {
{ {
const nowTime = utils.getUtcTime(); const nowTime = utils.getUtcTime();
const tokenId = this.genTokenId(name); const tokenId = genTokenId();
const fieldsList = [ const fieldsList = [
['bc_mint_tokenid', tokenId], ['bc_mint_tokenid', tokenId],
['unikey', uniKey], ['unikey', uniKey],
@ -116,7 +116,7 @@ async function presentItem(session) {
['createtime', nowTime], ['createtime', nowTime],
['modifytime', nowTime] ['modifytime', nowTime]
]; ];
const {err} = await this.conn.insert( const {err} = await conn.insert(
't_mint', 't_mint',
fieldsList fieldsList
); );

2
third_party/j7 vendored

@ -1 +1 @@
Subproject commit d72af66b36ce9c76e4dcf7163222bfad40f88150 Subproject commit b4c98428459cc04b89982ebd2094912c536bbf15