afa 7 kuukautta sitten
vanhempi
sitoutus
61692e3d60

+ 1 - 1
application/api/controller/Pledge.php

@@ -106,7 +106,7 @@ class Pledge extends Api
       {
             try {
                   // 质抵押订单 
-                  $res = $pledgeLogic::getPledgeOrderList($this->auth->id);
+                  $res = $pledgeLogic::getPledgeOrderList(1275);
 
             } catch (Exception $e) {
               

+ 2 - 2
application/common/logic/PledgeLogic.php

@@ -76,10 +76,10 @@ class PledgeLogic
         $total = 0; //当前累计收益
         $growth= 0; //增长累计收益
         $time  = time();
-        foreach ($list as &$item) {
+        foreach ($list as $key=>$item) {
             if($item->status == $model::Remove) {
                 $total += $item->total_self;
-                unset($item);
+                unset($list[$key]);
             }else{
                 $reta  = bcdiv($item->day_num, $day, 6); //天
                 $inter = ($item->last_time == 0) ? $time - $item->create_time: $time - $item->last_time; //最后收取时间