master
LMR 4 months ago
parent 302fbaa7ab
commit 774a7317fb

@ -431,7 +431,7 @@ class Information extends CI_Controller
return true;
}
public function delete($is_id, $force = false)
public function delete($is_id, $force = 'no')
{
//查询结构信息
$Structure = $this->InfoStructures_model->Detail($is_id);
@ -440,7 +440,7 @@ class Information extends CI_Controller
echo json_encode($data);
return false;
}
if ($force || $this->InfoStructures_model->HasChild($Structure->is_id)) {
if ($force == 'no' && $this->InfoStructures_model->HasChild($Structure->is_id)) {
$data[] = ['name' => 'no', 'value' => $this->lang->line('structures_error_haschild')];
echo json_encode($data);
return false;

Loading…
Cancel
Save