修改月份列表

master
zhengchanglong 5 years ago
parent 06395bcb9d
commit 5c8573df37

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

Loading…
Cancel
Save