This commit is contained in:
chaosBreaking
2019-10-07 17:40:05 +08:00
parent 92fe47c441
commit a5195c8f2b
2 changed files with 2 additions and 1 deletions

View File

@@ -265,6 +265,7 @@ module.exports = {
} }
}); });
} }
mylog.info(list);
let [newFund, actions] = await Promise.all([ let [newFund, actions] = await Promise.all([
fund.addFund(list, { inviter }), fund.addFund(list, { inviter }),
Action.find({ userId, type: 1, createdAt: { $gt: start, $lt: now } }) Action.find({ userId, type: 1, createdAt: { $gt: start, $lt: now } })

View File

@@ -108,7 +108,7 @@ FundModel.prototype.addFund = async function (txlist = [], option) {
}); });
typeof action.save === 'function' && actionPromiseList.push(action.save()); typeof action.save === 'function' && actionPromiseList.push(action.save());
txObj.amount = depositAmount; // 之后返回fundList里的数值需要把区块链的数值乘以比率 txObj.amount = depositAmount; // 之后返回fundList里的数值需要把区块链的数值乘以比率
mylog.info(txObj); mylog.info(JSON.stringify(txObj));
return createNewFund({...txObj}); return createNewFund({...txObj});
}); });
// 1.注入资金 // 1.注入资金