function get_weekinfo($month = '2020-04')
{
$week_info = array();
$end_date = date('d', strtotime($month . ' +1 month -1 day'));
for ($i = 1; $i < $end_date; $i = $i + 7) {
$w = date('N', strtotime($month . '-' . $i));
$week_info[] = [
'create_time' => date('Y-m-d', strtotime($month . '-' . $i . ' -' . ($w - 1) . ' days')) . '~' . date('Y-m-d', strtotime($month . '-' . $i . ' +' . (7 - $w) . ' days')),
'start_week' => date('Y-m-d', strtotime($month . '-' . $i . ' -' . ($w - 1) . ' days')),
'end_week' => date(date('Y-m-d', strtotime($month . '-' . $i . ' +' . (7 - $w) . ' days'))),
];
}
return $week_info;
}