logggg
This commit is contained in:
@@ -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 } })
|
||||||
|
|||||||
@@ -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.注入资金
|
||||||
|
|||||||
Reference in New Issue
Block a user