作者 何书鹏
1 个管道 的构建 通过 耗费 2 秒

bug修改

@@ -204,7 +204,7 @@ class Doctor extends Api @@ -204,7 +204,7 @@ class Doctor extends Api
204 empty($appointment_id) && $this->error('缺少必需参数'); 204 empty($appointment_id) && $this->error('缺少必需参数');
205 $appointment = Appointment::get(['doctor_id'=>$this->id,'id'=>$appointment_id]); 205 $appointment = Appointment::get(['doctor_id'=>$this->id,'id'=>$appointment_id]);
206 empty($appointment) && $this->error('预约不存在'); 206 empty($appointment) && $this->error('预约不存在');
207 - !in_array($appointment['status'],'1,2') && $this->error('订单不合法'); 207 + !in_array($appointment['status'],['1,2']) && $this->error('订单不合法');
208 if($appointment['status'] == '1'){ 208 if($appointment['status'] == '1'){
209 $tim = new Tim(); 209 $tim = new Tim();
210 // 导入用户 210 // 导入用户
@@ -385,7 +385,7 @@ class User extends Api @@ -385,7 +385,7 @@ class User extends Api
385 empty($appointment_id) && $this->error('缺少必需参数'); 385 empty($appointment_id) && $this->error('缺少必需参数');
386 $appointment = Appointment::get(['user_id'=>$this->auth->id,'id'=>$appointment_id]); 386 $appointment = Appointment::get(['user_id'=>$this->auth->id,'id'=>$appointment_id]);
387 empty($appointment) && $this->error('预约不存在'); 387 empty($appointment) && $this->error('预约不存在');
388 - !in_array($appointment['status'],'1,2') && $this->error('订单不合法'); 388 + !in_array($appointment['status'],['1,2']) && $this->error('订单不合法');
389 if($appointment['status'] == '1'){ 389 if($appointment['status'] == '1'){
390 $tim = new Tim(); 390 $tim = new Tim();
391 // 导入用户 391 // 导入用户