修改首页我的一生,新增患者问诊取消消息推送
This commit is contained in:
@@ -744,15 +744,9 @@ class PatientDoctorService extends BaseService
|
||||
continue;
|
||||
}
|
||||
|
||||
if (count($results) > 5){
|
||||
// 超出5个
|
||||
continue;
|
||||
}
|
||||
|
||||
// 检测是否重复,如果重复,删除最早的一个数据
|
||||
foreach ($results as $key => $result){
|
||||
if ($patient_history_doctor['doctor_id'] == $result['doctor_id']){
|
||||
unset($results[$key]);
|
||||
foreach ($results as $item){
|
||||
if ($patient_history_doctor['doctor_id'] == $item['doctor_id']){
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -781,7 +775,7 @@ class PatientDoctorService extends BaseService
|
||||
}
|
||||
}
|
||||
|
||||
$results = array_merge($results);
|
||||
|
||||
return $results;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user