From 5c8573df374bc4dfdeea2af894a9bff4542157ff Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Tue, 29 Oct 2019 18:06:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=88=E4=BB=BD=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 8f1e46a20..d0a1d3aef 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1439,22 +1439,19 @@ function cash_pay_way() } function getMonth() { - - $start = "2019-08"; - $end = date("Y-m"); - + $start = date("Y-m", strtotime("now")); //开始月份 - $end = date('Y-m', strtotime($end)); // 转换为月 $range = []; - $i = 0; + $i = 1; do { - $month = date('Y-m', strtotime($start . ' + ' . $i . ' month')); + $month = date('Y-m', strtotime($start . ' - ' . $i . ' month')); $range[] = $month; $i++; - } while ($month < $end); + } while ($i<13); return $range; } + function getPayType($type) { $return = '';