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 = '';