1
This commit is contained in:
parent
560bc927ab
commit
7a77de53db
@ -33,10 +33,8 @@ class Present extends BaseService {
|
||||
async processList(name, list) {
|
||||
for (let i in list){
|
||||
const presentMeta = list[i];
|
||||
console.log(presentMeta);
|
||||
const randItem = presentMeta.randItem();
|
||||
if (randItem) {
|
||||
console.log(11111);
|
||||
const itemId = randItem['itemId'];
|
||||
const tokenType = randItem['tokenType'];
|
||||
for (let ii = 0; ii < presentMeta.getCount(); ++ii) {
|
||||
@ -62,10 +60,7 @@ class Present extends BaseService {
|
||||
1,
|
||||
idx
|
||||
);
|
||||
console.log(tokenId, presentMeta);
|
||||
const {err} = await this.conn.insert(
|
||||
't_present',
|
||||
[
|
||||
const fieldsList = [
|
||||
['bc_mint_tokenid', tokenId],
|
||||
['batch_id', name],
|
||||
['row_id', presentMeta['id']],
|
||||
@ -79,7 +74,12 @@ class Present extends BaseService {
|
||||
|
||||
['createtime', this.nowTime],
|
||||
['modifytime', this.nowTime]
|
||||
]
|
||||
];
|
||||
|
||||
log.info('insert t_present ', utils.jsonEncode(fieldsList));
|
||||
const {err} = await this.conn.insert(
|
||||
't_present',
|
||||
fieldsList
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user