...
|
...
|
@@ -136,7 +136,8 @@ class Index extends Api |
|
|
* @ApiSummary (专科服务-预约)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiParams (name=type, type=integer, required=true, description="服务类型:1=文字沟通,2=音频沟通")
|
|
|
* @ApiParams (name=date, type=string, required=true, description="日期")
|
|
|
* @ApiParams (name=date, type=string, required=true, description="日期", sample="2021-07-08")
|
|
|
* @ApiParams (name=time, type=string, required=true, description="时间", sample="11:00")
|
|
|
* @ApiParams (name=description, type=string, required=true, description="病状描述")
|
|
|
* @ApiParams (name=dept_id, type=integer, required=true, description="专科ID")
|
|
|
* @ApiParams (name=doctor_id, type=integer, required=true, description="专科ID")
|
...
|
...
|
@@ -150,7 +151,8 @@ class Index extends Api |
|
|
public function appointment(){
|
|
|
$post = $this->request->post();
|
|
|
empty($post['type']) && $this->error('请选择服务类型');
|
|
|
empty($post['date']) && $this->error('请选择预约时间');
|
|
|
empty($post['date']) && $this->error('请选择预约日期');
|
|
|
empty($post['time']) && $this->error('请选择预约时间');
|
|
|
empty($post['description']) && $this->error('请填写病状描述');
|
|
|
!in_array($post['type'],[1,2]) && $this->error('服务类型不合法');
|
|
|
for($i = 0; $i < 7; $i++){
|
...
|
...
|
@@ -225,7 +227,7 @@ class Index extends Api |
|
|
'pay_fee' => $pay_fee,
|
|
|
'dept_ids' => $dept_ids,
|
|
|
'is_distribute' => $is_distribute,
|
|
|
'date_time' => strtotime($post['date']),
|
|
|
'date_time' => strtotime($post['date']. ' ' .$post['time']),
|
|
|
'type' => $post['type'],
|
|
|
'description' => $post['description'],
|
|
|
'date' => $post['date']
|
...
|
...
|
|