This commit is contained in:
aozhiwei 2022-04-17 08:42:24 +08:00
parent 64162ebce7
commit 4349bba5f0
4 changed files with 7 additions and 2 deletions

View File

@ -17,6 +17,10 @@ class Present extends basewrap.BaseWrap {
return 1; return 1;
} }
getTags() {
return '1';
}
} }
module.exports = Present; module.exports = Present;

View File

@ -72,6 +72,7 @@ class Present extends BaseService {
['bc_mint_itemid', itemId], ['bc_mint_itemid', itemId],
['bc_mint_token_type', tokenType], ['bc_mint_token_type', tokenType],
['bc_mint_tags', presentMeta.getTags()],
['createtime', this.nowTime], ['createtime', this.nowTime],
['modifytime', this.nowTime] ['modifytime', this.nowTime]

View File

@ -158,7 +158,7 @@ class Present {
['token_id', this.getTokenId()], ['token_id', this.getTokenId()],
['token_type', this.presentDb['bc_mint_token_type']], ['token_type', this.presentDb['bc_mint_token_type']],
['item_id', this.presentDb['bc_mint_itemid']], ['item_id', this.presentDb['bc_mint_itemid']],
['tags', this.presentDb['tags']], ['tags', this.presentDb['bc_mint_tags']],
['game_id', this.presentDb['game_id']], ['game_id', this.presentDb['game_id']],
['owner_address', this.presentDb['account']], ['owner_address', this.presentDb['account']],
['createtime', nowTime], ['createtime', nowTime],

View File

@ -41,7 +41,7 @@ class PresentMgr {
{ {
const {err, row} = await db.execQueryOne( const {err, row} = await db.execQueryOne(
'SELECT max(idx) max_idx FROM t_present', []); 'SELECT max(idx) max_idx FROM t_present', []);
if (!err) { if (!err && row['max_idx'] != null) {
maxIdx = row['max_idx']; maxIdx = row['max_idx'];
} }
} }