|
@@ -82,7 +82,8 @@ class PledgeLogic
|
|
|
$day = 86400;
|
|
$day = 86400;
|
|
|
$total = 0; //当前累计收益
|
|
$total = 0; //当前累计收益
|
|
|
$growth= 0; //增长累计收益
|
|
$growth= 0; //增长累计收益
|
|
|
- foreach ($list as $key=>$item) {
|
|
|
|
|
|
|
+ $result = [];
|
|
|
|
|
+ foreach ($list as $item) {
|
|
|
if($item->end_time > $time){
|
|
if($item->end_time > $time){
|
|
|
if($item->status == $model::Remove) {
|
|
if($item->status == $model::Remove) {
|
|
|
$total += $item->total_self;
|
|
$total += $item->total_self;
|
|
@@ -93,9 +94,9 @@ class PledgeLogic
|
|
|
$growth = bcadd($growth, bcmul($reta, $item->num, 6), 6); //增长收益
|
|
$growth = bcadd($growth, bcmul($reta, $item->num, 6), 6); //增长收益
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if($item->status == $model::Remove) unset($list[$key]);
|
|
|
|
|
|
|
+ if($item->status != $model::Remove) $result[] = $item;
|
|
|
}
|
|
}
|
|
|
- return ['total' => $total, 'growth' => $growth, 'list' => $list];
|
|
|
|
|
|
|
+ return ['total' => $total, 'growth' => $growth, 'list' => $result];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//解除质抵押订单
|
|
//解除质抵押订单
|