Browse Source

收取质抵押订单列表

afa 4 months ago
parent
commit
6205f0f177
1 changed files with 1 additions and 2 deletions
  1. 1 2
      application/api/logic/PledgeLogic.php

+ 1 - 2
application/api/logic/PledgeLogic.php

@@ -109,7 +109,7 @@ class PledgeLogic
                 ->where('a.user_id', $user_id)
                 ->where('a.id', $pledge_id)
                 ->where('a.status', $model::Ongoing)
-                ->where('a.end_time', '>', $time)
+                //->where('a.end_time', '>', $time)
                 ->field('a.*,b.day_num,b.type_id')
                 ->find();
         if(empty($rows))  throw new Exception('暂无质押订单');
@@ -128,7 +128,6 @@ class PledgeLogic
             $rows->num       = count($result);
             $rows->details   = json_encode($result, JSON_UNESCAPED_UNICODE);
         }
-
         $day   = 86400;
         $reta  = bcdiv($rows->day_num, $day, 6); //天数
         $inter = ($rows->last_time == 0) ? $time - $rows->create_time: $time - $rows->last_time; //最后收取时间