修改专家详情服务天书

This commit is contained in:
2023-04-18 13:43:26 +08:00
parent 9acd823317
commit 2e56ddf700
3 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ class PatientDoctorService extends BaseService
$params['patient_id'] = $user_info['client_user_id'];
$params['doctor_id'] = $doctor_id;
$params['history_status'] = 1;
$patient_history_doctor = PatientHistoryInquiryModel::getOne($params);
$patient_history_doctor = PatientHistoryInquiryModel::getOrderOne($params);
// 按照天来计算,当日为1,前一天为2 未服务过为0
if (!empty($patient_history_doctor['created_at'])) {
$result['days'] = ceil((strtotime(date('Y-m-d', strtotime('+1 day'))) - strtotime($patient_history_doctor['created_at'])) / 86400);