From c7804aa9059b2cb2b8c4d8d683bb3c19019ad850 Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Tue, 19 Nov 2019 10:25:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/DownloadController.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Application/Home/Controller/DownloadController.class.php b/Application/Home/Controller/DownloadController.class.php index 0f6b0d410..52a5c56a3 100644 --- a/Application/Home/Controller/DownloadController.class.php +++ b/Application/Home/Controller/DownloadController.class.php @@ -1580,6 +1580,12 @@ class DownloadController extends BaseController { } empty($relation_game_id) || $map['tab_game.relation_game_id'] = $relation_game_id; empty($sdk_version) || $map['tab_game.sdk_version'] = $sdk_version; + if(empty($begtime) && empty($endtime)) { + $nowTime = date('Y-m-d'); + $begtime = date('Y-m-d', strtotime('-6 day', strtotime($nowTime))); + $endtime = $nowTime; + $map["apply_time"] = ["between",[$begtime,$endtime]]; + } if(!empty($begtime) && !empty($endtime)) { $map["apply_time"] = ["between",[$begtime,$endtime]]; }