From eb453b0f319d90a76cacd31b1ebe57035d5890c5 Mon Sep 17 00:00:00 2001 From: tping Date: Fri, 25 Dec 2020 10:13:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sdk/Controller/FengHuoApi2Controller.class.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Application/Sdk/Controller/FengHuoApi2Controller.class.php b/Application/Sdk/Controller/FengHuoApi2Controller.class.php index f0210eb3..06ed6382 100644 --- a/Application/Sdk/Controller/FengHuoApi2Controller.class.php +++ b/Application/Sdk/Controller/FengHuoApi2Controller.class.php @@ -339,14 +339,14 @@ class FengHuoApi2Controller extends GetInfoBaseController{ // 下载记录 public function downloadLog(){ $where = []; -// $time = $_REQUEST['time']; + $time = $_REQUEST['time']; $page = $_REQUEST['page']; $pageSize = $_REQUEST['page_size']; //时间区间 -// if (isset($time)) { -// $where['login_time'] = array('between',[$time,$time+86399]); -// } + if (isset($time)) { + $where['create_time'] = array('between',[$time,$time+86399]); + } // 第几页数据 $page = intval($page); $page = $page ? $page : 1; //默认显示第一页数据 @@ -387,6 +387,7 @@ class FengHuoApi2Controller extends GetInfoBaseController{ $data[$k]['game_name'] = $game['game_name']; $data[$k]['ip'] = $v['ip']; $data[$k]['create_time'] = $v['create_time']; + $data[$k]['create_time1'] = date('Y-m-d H:i:s', $v['create_time']); } if($data){ @@ -399,6 +400,7 @@ class FengHuoApi2Controller extends GetInfoBaseController{ $result = [ 'ResultCode' => 1, 'ResultMessage' => "没有数据,换个条件试试吧", + 'Data' => [] ]; }