register get method

master
sunke 5 years ago
parent b4afa5d8b2
commit e31ad349ae

@ -407,6 +407,7 @@ class DownloadController extends BaseController {
if (!empty($payOrderNumber)) { if (!empty($payOrderNumber)) {
$map['pay_order_number'] = $payOrderNumber; $map['pay_order_number'] = $payOrderNumber;
} }
if (!empty($begTime) && empty($endTime)) { if (!empty($begTime) && empty($endTime)) {
$map['pay_time'] = ['egt', $begTime]; $map['pay_time'] = ['egt', $begTime];
} elseif (empty($begTime) && !empty($endTime)) { } elseif (empty($begTime) && !empty($endTime)) {
@ -1582,12 +1583,12 @@ class DownloadController extends BaseController {
empty($sdk_version) || $map['tab_game.sdk_version'] = $sdk_version; empty($sdk_version) || $map['tab_game.sdk_version'] = $sdk_version;
if(empty($begtime) && empty($endtime)) { if(empty($begtime) && empty($endtime)) {
$nowTime = date('Y-m-d'); $nowTime = date('Y-m-d');
$begtime = date('Y-m-d', strtotime('-6 day', strtotime($nowTime))); $begtime1 = date('Y-m-d', strtotime('-6 day', strtotime($nowTime)));
$endtime = $nowTime; $endtime1 = $nowTime;
$map["apply_time"] = ["between",[$begtime,$endtime]]; $map["apply_time"] = ["between",[strtotime($begtime1),strtotime($endtime1)]];
} }
if(!empty($begtime) && !empty($endtime)) { if(!empty($begtime) && !empty($endtime)) {
$map["apply_time"] = ["between",[$begtime,$endtime]]; $map["apply_time"] = ["between",[strtotime($begtime),strtotime($endtime)]];
} }
$serverField = ''; $serverField = '';
$serverJoin = ''; $serverJoin = '';
@ -1790,7 +1791,7 @@ class DownloadController extends BaseController {
$params['end_time'] = $endTime; $params['end_time'] = $endTime;
unset($map['apply_time']); unset($map['apply_time']);
} }
if(!empty($map['tab_server.server_id'])) { if(!empty($map['tab_server.server_id'])) {
$serverJoin = 'tab_server on tab_server.game_id = tab_apply.game_id'; $serverJoin = 'tab_server on tab_server.game_id = tab_apply.game_id';
$params['server_id'] = $map['tab_server.server_id']; $params['server_id'] = $map['tab_server.server_id'];
} }

@ -126,7 +126,7 @@
</div> </div>
<div class="pagenation clearfix"> <div class="pagenation clearfix">
<?php if ($loginer['level'] !== 4) :?> <?php if ($loginer['level'] !== 4) :?>
<a id="sch-btn" data-href="{:U('download/regist_data_export',array_merge(['xlsname'=>'ceshi'],I('post.')))}" class="ajax-get">导出</a> <a id="sch-btn" data-href="{:U('download/regist_data_export',array_merge(['xlsname'=>'ceshi'],I('get.')))}" class="ajax-get">导出</a>
<?php endif ;?> <?php endif ;?>
{$_page} {$_page}
</div> </div>

Loading…
Cancel
Save