作者 邓超

x

@@ -114,7 +114,7 @@ class CustomController extends BaseController @@ -114,7 +114,7 @@ class CustomController extends BaseController
114 $id = BCustom::_save($this->user['project_id'],$data,$data['id']??0); 114 $id = BCustom::_save($this->user['project_id'],$data,$data['id']??0);
115 115
116 if($id===-1){ 116 if($id===-1){
117 - return $this->response('数据不存在','B_CUSTOM_NOTFOUND'); 117 + return $this->response('数据不存在',Code::SYSTEM_ERROR);
118 } 118 }
119 119
120 return $this->success(BCustom::_find($this->user['project_id'],$id,true)); 120 return $this->success(BCustom::_find($this->user['project_id'],$id,true));
@@ -132,7 +132,7 @@ class CustomController extends BaseController @@ -132,7 +132,7 @@ class CustomController extends BaseController
132 $data = BCustom::_find($this->user['project_id'],$id); 132 $data = BCustom::_find($this->user['project_id'],$id);
133 133
134 if(empty($data)){ 134 if(empty($data)){
135 - return $this->response('数据不存在','B_CUSTOM_NOTFOUND'); 135 + return $this->response('数据不存在',Code::SYSTEM_ERROR);
136 } 136 }
137 137
138 138
@@ -154,7 +154,7 @@ class CustomController extends BaseController @@ -154,7 +154,7 @@ class CustomController extends BaseController
154 { 154 {
155 $data = BCustom::_find($this->user['project_id'],$id); 155 $data = BCustom::_find($this->user['project_id'],$id);
156 if(!$data){ 156 if(!$data){
157 - return $this->response('数据不存在','B_CUSTOM_NOTFOUND'); 157 + return $this->response('数据不存在',Code::SYSTEM_ERROR);
158 } 158 }
159 if($this->isPost()){ 159 if($this->isPost()){
160 $html = $this->param['html']??''; 160 $html = $this->param['html']??'';