From 5fbe482fbae5786864c2770b423773bec509bd17 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Thu, 16 Jan 2020 19:39:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=91=98=E6=8C=87=E6=A0=87?= =?UTF-8?q?=E7=AE=A1=E7=90=86--=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/QueryController.class.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index c7777c09b..e27715e03 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -2214,13 +2214,11 @@ class QueryController extends BaseController //推广员指标管理 public function promoteQuota() { - $time = I('time', date('Y-m-d')); + $nowTime = date('Y-m-d', time()); + $defaultTime = date('Y-m-d', strtotime('-6 day', time())) . " 至 " . $nowTime; + $time = I('time', $defaultTime); if (!empty($time)) { $defaultTime = $time; - } else { - $nowTime = date('Y-m-d', time()); - $defaultTime = date('Y-m-d', strtotime('-6 day', time())) . " 至 " . $nowTime; - $time = $defaultTime; } $sdkVersion = I('sdk_version', 0); $relationGameId = I('relation_game_id', 0);