修改专家详情服务天书
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user