|
...
|
...
|
@@ -93,6 +93,10 @@ class ProjectWhiteHatAffixController extends BaseController |
|
|
|
],[
|
|
|
|
'id.required' => '项目id不能为空',
|
|
|
|
]);
|
|
|
|
$info = $this->model->read(['id'=>$this->param['id']]);
|
|
|
|
if($info['project_id'] == 0){
|
|
|
|
$this->response('当前前后缀为公共前后缀,不允许删除',Code::USER_ERROR);
|
|
|
|
}
|
|
|
|
$data = $this->model->del(['id'=>$this->param['id']]);
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
...
|
...
|
|