This commit is contained in:
aozhiwei 2022-04-17 00:12:23 +08:00
parent c5086a2e20
commit 175fd16c0c
3 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,7 @@ class Present extends BaseService {
const {err} = await this.conn.insert( const {err} = await this.conn.insert(
't_present', 't_present',
[ [
['token_id', tokenId], ['bc_mint_tokenid', tokenId],
['batch_id', name], ['batch_id', name],
['row_id', presentMeta['id']], ['row_id', presentMeta['id']],
['seq_id', seqId], ['seq_id', seqId],

View File

@ -9,3 +9,4 @@ exports.REMOVE_PENDING_WITHDRAWAL_EVENT = REMOVE_PENDING_WITHDRAWAL_EVENT;
exports.TOKEN_TYPE_HERO = 1; exports.TOKEN_TYPE_HERO = 1;
exports.TOKEN_TYPE_EQUIP = 2; exports.TOKEN_TYPE_EQUIP = 2;
exports.TOKEN_TYPE_CHIP = 3; exports.TOKEN_TYPE_CHIP = 3;
exports.BLIND_BOX_TYPE_CHIP = 4;

View File

@ -20,7 +20,7 @@ class PresentMgr {
while (true) { while (true) {
{ {
const {err, rows} = await db.execQuery( const {err, rows} = await db.execQuery(
'SELECT * FROM t_present WHERE `idx` > ? AND `ignore` = 0 AND ' + \ 'SELECT * FROM t_present WHERE `idx` > ? AND `ignore` = 0 AND ' +
'done = 0 AND suspend = 0 LIMIT 100', 'done = 0 AND suspend = 0 LIMIT 100',
[this.lastIdx]); [this.lastIdx]);
if (!err) { if (!err) {