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

bug修改

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