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