diff --git a/Application/Home/Controller/DownloadController.class.php b/Application/Home/Controller/DownloadController.class.php index 4ed8ea64d..d41a710b7 100644 --- a/Application/Home/Controller/DownloadController.class.php +++ b/Application/Home/Controller/DownloadController.class.php @@ -1135,8 +1135,8 @@ class DownloadController extends BaseController { public function recharge_data_export() { $beginTime = strtotime(I('begtime') . ' 00:00:00'); $endtime = strtotime(I('endtime') . ' 23:59:59'); - if (($endtime - $beginTime) > 31 * 24 * 3600) { - $this->error('时间范围不能超过31天'); + if (($endtime - $beginTime) > 7 * 24 * 3600) { + $this->error('时间范围不能超过7天'); } $map1['chain'] = ['like','%'.'/'.PID.'/'.'%']; $rs = M('promote','tab_')->where($map1)->field('id,account,nickname')->select(); @@ -2995,7 +2995,7 @@ class DownloadController extends BaseController { 'promote_id' => empty($role['promote_id']) ? '--' : $role['promote_id'], 'promote_account' => empty($role['promote_account']) ? '--' : $role['promote_account'], 'sdk_version' => empty($role['sdk_version']) ? '--' : $role['sdk_version'], - 'unlogin_day' => intval((strtotime(date('Y-m-d 00:00:00')) - strtotime(date('Y-m-d 00:00:00', $role['play_time']))) / (24 * 3600)) + 'unlogin_day' => empty($role['play_time']) ? '--' : intval((strtotime(date('Y-m-d 00:00:00')) - strtotime(date('Y-m-d 00:00:00', $role['play_time']))) / (24 * 3600)) ]; } $allData['user_account'] = '合计'; @@ -3106,7 +3106,7 @@ class DownloadController extends BaseController { } - } + } $csvData["user_account"] = $value1["user_account"]; $csvData["pay_order_number"] = $value1["pay_order_number"]; $csvData["pay_amount"] = $value1["pay_amount"];