diff --git a/app/Services/DoctorAccountService.php b/app/Services/DoctorAccountService.php index db38b1f..f376111 100644 --- a/app/Services/DoctorAccountService.php +++ b/app/Services/DoctorAccountService.php @@ -112,7 +112,7 @@ class DoctorAccountService extends BaseService $params['doctor_id'] = $user_doctor['doctor_id']; // 获取当月开始时间 - $start_date = date('Y-m-01 00:00:00',$date); + $start_date = date('Y-m-01 00:00:00',strtotime($date)); // 获取当月结束时间 // 获取给定月份的下一个月的第一天,然后减去一天得到当月的最后一天