|
...
|
...
|
@@ -114,7 +114,7 @@ class CustomController extends BaseController |
|
|
|
$id = BCustom::_save($this->user['project_id'],$data,$data['id']??0);
|
|
|
|
|
|
|
|
if($id===-1){
|
|
|
|
return $this->response('数据不存在','B_CUSTOM_NOTFOUND');
|
|
|
|
return $this->response('数据不存在',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
|
|
|
|
return $this->success(BCustom::_find($this->user['project_id'],$id,true));
|
|
...
|
...
|
@@ -132,7 +132,7 @@ class CustomController extends BaseController |
|
|
|
$data = BCustom::_find($this->user['project_id'],$id);
|
|
|
|
|
|
|
|
if(empty($data)){
|
|
|
|
return $this->response('数据不存在','B_CUSTOM_NOTFOUND');
|
|
|
|
return $this->response('数据不存在',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
...
|
...
|
@@ -154,7 +154,7 @@ class CustomController extends BaseController |
|
|
|
{
|
|
|
|
$data = BCustom::_find($this->user['project_id'],$id);
|
|
|
|
if(!$data){
|
|
|
|
return $this->response('数据不存在','B_CUSTOM_NOTFOUND');
|
|
|
|
return $this->response('数据不存在',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
if($this->isPost()){
|
|
|
|
$html = $this->param['html']??'';
|
...
|
...
|
|