From 19c2f8b2de5a562146fd7bab222aaa7b8fbeeba4 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 7 Jul 2020 16:59:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E6=B1=87=E6=80=BB=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E5=8D=95=E9=BB=98=E8=AE=A4=E4=BA=8B=E4=BB=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/MarketPercentageController.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/MarketPercentageController.class.php b/Application/Admin/Controller/MarketPercentageController.class.php index d36693754..5fee5deff 100644 --- a/Application/Admin/Controller/MarketPercentageController.class.php +++ b/Application/Admin/Controller/MarketPercentageController.class.php @@ -774,6 +774,11 @@ class MarketPercentageController extends ThinkController public function showBonusList($row = 10, $p = 1) { + //排序 + if(!array_key_exists("time_start",$_REQUEST)){ + $this->redirect(ACTION_NAME, array('time_start' => date('Y-m',strtotime('-1 month')),"time_end"=>date('Y-m',strtotime('-1 month')))); + } + $map = []; $_REQUEST['pay_time']?$map['pay_time'] = $_REQUEST['pay_time']:''; @@ -896,7 +901,7 @@ class MarketPercentageController extends ThinkController $sum['extend_commission'] = number_format($sum['extend_commission'], 2, '.', '');; $sum['wait_commission'] = number_format($sum['wait_commission'], 2, '.', '');; - $_REQUEST['time_start']?($start_time = date("Y-m-1",strtotime($_REQUEST['time_start']))):''; + $_REQUEST['time_start']?($start_time = date("Y-m-1",strtotime($_REQUEST['time_start']))):$start_time = date("Y-m-1",strtotime('')); $_REQUEST['time_end']?($end_time = date("Y-m-t",strtotime($_REQUEST['time_end']))):''; $this->assign('start_time',$start_time); $this->assign('end_time',$end_time);