id)->update(['status'=>2]); $filter = [1=>'is_chat',2=>'is_phone',3=>'is_appoint']; Docter::where('id',$model->docter_id)->update([$filter[$model->service_type]=>1]); return $this->response()->success('审核通过')->refresh(); } }