新增获取问诊消息列表接口、修正im回调
This commit is contained in:
@@ -361,9 +361,9 @@ class CallBackController extends AbstractController
|
||||
if (!empty($cloud_custom_data['is_system'])){
|
||||
if ($cloud_custom_data['is_system'] != 1){
|
||||
// 非系统发送
|
||||
if (!empty($cloud_custom_data['sender_user_type'])){
|
||||
if ($cloud_custom_data['sender_user_type'] == 1 || $cloud_custom_data['sender_user_type'] == 2){
|
||||
// 患者-医生发送
|
||||
if ($cloud_custom_data['sender_user_type'] == 1 || $cloud_custom_data['sender_user_type'] == 2){
|
||||
// 患者-医生发送
|
||||
if (!empty($order_inquiry['doctor_id'])){
|
||||
$data['order_inquiry_id'] = $order_inquiry['order_inquiry_id'];
|
||||
$data['patient_name'] = $order_inquiry['patient_name'];
|
||||
$data['patient_sex'] = $order_inquiry['patient_sex'];
|
||||
@@ -374,6 +374,7 @@ class CallBackController extends AbstractController
|
||||
|
||||
$imService = new ImService();
|
||||
$imService->addRecentContactRecordCache($order_inquiry['doctor_id'],$order_inquiry['inquiry_type'],$order_inquiry['user_id'],$data);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,8 +164,8 @@ class UserController extends AbstractController
|
||||
|
||||
// 自定义消息
|
||||
$cloud_custom_data = array();
|
||||
$cloud_custom_data['order_inquiry_id'] = 491937904055369728;
|
||||
$cloud_custom_data['is_system'] = 1;
|
||||
$cloud_custom_data['order_inquiry_id'] = 491963820554948608;
|
||||
$cloud_custom_data['is_system'] = 0;
|
||||
|
||||
$arg['CloudCustomData'] = json_encode($cloud_custom_data,JSON_UNESCAPED_UNICODE);
|
||||
|
||||
|
||||
@@ -301,8 +301,19 @@ class UserDoctorController extends AbstractController
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
// 获取医生问诊消息列表
|
||||
public function getDoctorMessageList(){
|
||||
/**
|
||||
* 获取医生问诊消息列表
|
||||
* @return ResponseInterface
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function getDoctorMessageList(): ResponseInterface
|
||||
{
|
||||
$request = $this->container->get(UserDoctorRequest::class);
|
||||
$request->scene('getDoctorMessageList')->validateResolved();
|
||||
|
||||
$UserDoctorService = new UserDoctorService();
|
||||
$data = $UserDoctorService->getDoctorMessageList();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user