|
|
@@ -83,11 +83,11 @@ class PledgeLogic
|
|
|
$result = [];
|
|
|
foreach ($list as $item) {
|
|
|
if($item->end_time > $time){
|
|
|
-
|
|
|
+
|
|
|
if($item->status == $model::Remove) {
|
|
|
$total += $item->total_self;
|
|
|
}else{
|
|
|
- $reta = bcdiv($item->day_num, $day, 6); //天
|
|
|
+ $reta = bcdiv($item->day_num, $day, 8); //天
|
|
|
$inter = ($item->last_time == 0) ? $time - $item->create_time: $time - $item->last_time; //最后收取时间
|
|
|
$total += bcmul($reta, $inter, 6)* $item->num; //累计收益
|
|
|
$growth = bcadd($growth, bcmul($reta, $item->num, 6), 6); //增长收益
|
|
|
@@ -126,7 +126,7 @@ class PledgeLogic
|
|
|
$rows->details = json_encode($result, JSON_UNESCAPED_UNICODE);
|
|
|
}
|
|
|
$day = 86400;
|
|
|
- $reta = bcdiv($rows->day_num, $day, 6); //天数
|
|
|
+ $reta = bcdiv($rows->day_num, $day, 8); //天数
|
|
|
$total = 0;
|
|
|
//到期解除收取
|
|
|
if($time > $rows->end_time){
|