修改月份列表

master
zhengchanglong 5 years ago
parent 06395bcb9d
commit 5c8573df37

@ -1439,22 +1439,19 @@ function cash_pay_way()
} }
function getMonth() { function getMonth() {
$start = date("Y-m", strtotime("now"));
$start = "2019-08";
$end = date("Y-m");
//开始月份 //开始月份
$end = date('Y-m', strtotime($end)); // 转换为月
$range = []; $range = [];
$i = 0; $i = 1;
do { do {
$month = date('Y-m', strtotime($start . ' + ' . $i . ' month')); $month = date('Y-m', strtotime($start . ' - ' . $i . ' month'));
$range[] = $month; $range[] = $month;
$i++; $i++;
} while ($month < $end); } while ($i<13);
return $range; return $range;
} }
function getPayType($type) { function getPayType($type) {
$return = ''; $return = '';

Loading…
Cancel
Save