row->id)->update(['state'=>2]); $docter_id = $this->row->docter_id; Docter::where(['id'=>$docter_id])->update(['is_then'=>0]); } catch (Exception $e){ return $this->response->error('操作失败'); } return $this->response->success('操作成功')->refresh(); } }