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);