Merge pull request '时间' (#5) from feature/oa1215 into master

Reviewed-on: http://8.136.139.249:3000/wmtx/sdk/pulls/5
master
廖金灵 4 years ago
commit fa7b0be8e7

@ -339,14 +339,14 @@ class FengHuoApi2Controller extends GetInfoBaseController{
// 下载记录 // 下载记录
public function downloadLog(){ public function downloadLog(){
$where = []; $where = [];
// $time = $_REQUEST['time']; $time = $_REQUEST['time'];
$page = $_REQUEST['page']; $page = $_REQUEST['page'];
$pageSize = $_REQUEST['page_size']; $pageSize = $_REQUEST['page_size'];
//时间区间 //时间区间
// if (isset($time)) { if (isset($time)) {
// $where['login_time'] = array('between',[$time,$time+86399]); $where['create_time'] = array('between',[$time,$time+86399]);
// } }
// 第几页数据 // 第几页数据
$page = intval($page); $page = intval($page);
$page = $page ? $page : 1; //默认显示第一页数据 $page = $page ? $page : 1; //默认显示第一页数据
@ -387,6 +387,7 @@ class FengHuoApi2Controller extends GetInfoBaseController{
$data[$k]['game_name'] = $game['game_name']; $data[$k]['game_name'] = $game['game_name'];
$data[$k]['ip'] = $v['ip']; $data[$k]['ip'] = $v['ip'];
$data[$k]['create_time'] = $v['create_time']; $data[$k]['create_time'] = $v['create_time'];
$data[$k]['create_time1'] = date('Y-m-d H:i:s', $v['create_time']);
} }
if($data){ if($data){
@ -399,6 +400,7 @@ class FengHuoApi2Controller extends GetInfoBaseController{
$result = [ $result = [
'ResultCode' => 1, 'ResultCode' => 1,
'ResultMessage' => "没有数据,换个条件试试吧", 'ResultMessage' => "没有数据,换个条件试试吧",
'Data' => []
]; ];
} }

Loading…
Cancel
Save