1
This commit is contained in:
parent
64162ebce7
commit
4349bba5f0
@ -17,6 +17,10 @@ class Present extends basewrap.BaseWrap {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTags() {
|
||||||
|
return '1';
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Present;
|
module.exports = Present;
|
||||||
|
@ -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]
|
||||||
|
@ -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],
|
||||||
|
@ -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'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user