2
This commit is contained in:
parent
d4d118904e
commit
d2f1ea6597
@ -179,4 +179,15 @@ class InquiryController extends AbstractController
|
||||
$data = $InquiryService->addVideoReservationDate();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取视频问诊消息内页基础数据
|
||||
* @return ResponseInterface
|
||||
*/
|
||||
public function getInquiryVideoMessageBasic(): ResponseInterface
|
||||
{
|
||||
$InquiryService = new InquiryService();
|
||||
$data = $InquiryService->addVideoReservationDate();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
}
|
||||
@ -1369,6 +1369,8 @@ class InquiryService extends BaseService
|
||||
}
|
||||
|
||||
// 获取是否已经预约
|
||||
$is_reservation = false;
|
||||
|
||||
$params = array();
|
||||
$params['order_inquiry_id'] = $order_inquiry_id;
|
||||
$order_inquiry_video = OrderInquiryVideo::getOne($params);
|
||||
@ -1382,6 +1384,8 @@ class InquiryService extends BaseService
|
||||
if ($order_inquiry_video['update_number'] >= 1){
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "已无法设置/修改视频时间,可立即发起视频");
|
||||
}
|
||||
|
||||
$is_reservation = true;
|
||||
}
|
||||
|
||||
// 创建订单
|
||||
@ -1435,7 +1439,11 @@ class InquiryService extends BaseService
|
||||
// 发送im消息
|
||||
$imService = new ImService();
|
||||
|
||||
|
||||
if ($is_reservation){
|
||||
// 修改
|
||||
}else{
|
||||
// 新增
|
||||
}
|
||||
// 发送短信-患者-视频预约成功
|
||||
|
||||
|
||||
|
||||
@ -832,7 +832,7 @@ Router::addGroup('/im', function () {
|
||||
Router::get('/{order_inquiry_id:\d+}', [InquiryController::class, 'getInquiryMessageBasic']);
|
||||
|
||||
// 获取视频问诊消息内页基础数据
|
||||
Router::get('/video/{order_inquiry_id:\d+}', [InquiryController::class, 'getInquiryMessageBasic']);
|
||||
Router::get('/video/{order_inquiry_id:\d+}', [InquiryController::class, 'getInquiryVideoMessageBasic']);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user