diff --git a/src/modules/fund/fund.controller.js b/src/modules/fund/fund.controller.js index 9234cfa..1114cfd 100644 --- a/src/modules/fund/fund.controller.js +++ b/src/modules/fund/fund.controller.js @@ -265,6 +265,7 @@ module.exports = { } }); } + mylog.info(list); let [newFund, actions] = await Promise.all([ fund.addFund(list, { inviter }), Action.find({ userId, type: 1, createdAt: { $gt: start, $lt: now } }) diff --git a/src/modules/fund/fund.model.js b/src/modules/fund/fund.model.js index e584f6f..6bf2be2 100644 --- a/src/modules/fund/fund.model.js +++ b/src/modules/fund/fund.model.js @@ -108,7 +108,7 @@ FundModel.prototype.addFund = async function (txlist = [], option) { }); typeof action.save === 'function' && actionPromiseList.push(action.save()); txObj.amount = depositAmount; // 之后返回fundList里的数值需要把区块链的数值乘以比率 !!!! - mylog.info(txObj); + mylog.info(JSON.stringify(txObj)); return createNewFund({...txObj}); }); // 1.注入资金