浏览代码

收取质抵押订单列表

afa 4 月之前
父节点
当前提交
6205f0f177
共有 1 个文件被更改,包括 1 次插入2 次删除
  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.user_id', $user_id)
                 ->where('a.id', $pledge_id)
                 ->where('a.id', $pledge_id)
                 ->where('a.status', $model::Ongoing)
                 ->where('a.status', $model::Ongoing)
-                ->where('a.end_time', '>', $time)
+                //->where('a.end_time', '>', $time)
                 ->field('a.*,b.day_num,b.type_id')
                 ->field('a.*,b.day_num,b.type_id')
                 ->find();
                 ->find();
         if(empty($rows))  throw new Exception('暂无质押订单');
         if(empty($rows))  throw new Exception('暂无质押订单');
@@ -128,7 +128,6 @@ class PledgeLogic
             $rows->num       = count($result);
             $rows->num       = count($result);
             $rows->details   = json_encode($result, JSON_UNESCAPED_UNICODE);
             $rows->details   = json_encode($result, JSON_UNESCAPED_UNICODE);
         }
         }
-
         $day   = 86400;
         $day   = 86400;
         $reta  = bcdiv($rows->day_num, $day, 6); //天数
         $reta  = bcdiv($rows->day_num, $day, 6); //天数
         $inter = ($rows->last_time == 0) ? $time - $rows->create_time: $time - $rows->last_time; //最后收取时间
         $inter = ($rows->last_time == 0) ? $time - $rows->create_time: $time - $rows->last_time; //最后收取时间