fix: 总收益不算糖果
This commit is contained in:
@@ -233,7 +233,7 @@ module.exports = {
|
||||
let revenueLastday = calRevenueLastday(actions);
|
||||
// 筛选有效矿晶
|
||||
let activeFund = getActiveFund(fund.fundList);
|
||||
const revenueAll = fund.asset && +fund.asset['vic'] > +fund.asset['usdt'] ? +fund.asset['vic'] - +fund.asset['usdt'] : 0;
|
||||
const revenueAll = fund.asset && +fund.asset['vic'] || 0;
|
||||
return res.json({
|
||||
code: 0,
|
||||
msg: '刷新成功',
|
||||
@@ -256,7 +256,7 @@ module.exports = {
|
||||
// 筛选有效矿晶
|
||||
let activeFund = getActiveFund(fund.fundList);
|
||||
if (!newFund || !newFund.fundList) newFund = fund;
|
||||
const revenueAll = fund.asset && +fund.asset['vic'] > +fund.asset['usdt'] ? +fund.asset['vic'] - +fund.asset['usdt'] : 0;
|
||||
const revenueAll = fund.asset && +fund.asset['vic'] || 0;
|
||||
return res.json({
|
||||
code: 0,
|
||||
msg: '刷新成功',
|
||||
@@ -295,7 +295,7 @@ module.exports = {
|
||||
let revenueLastday = calRevenueLastday(actions);
|
||||
// 筛选有效矿晶
|
||||
let activeFund = getActiveFund(fund.fundList);
|
||||
const revenueAll = fund.asset && +fund.asset['vic'] > +fund.asset['usdt'] ? +fund.asset['vic'] - +fund.asset['usdt'] : 0;
|
||||
const revenueAll = fund.asset && +fund.asset['vic'] || 0;
|
||||
return res.json({
|
||||
code: 0,
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user