public function deladdsystemdata()
{
$return = array('status' => 1, 'data' => L('PUBLIC_DELETE_SUCCESS'));
if (empty($_POST['key'])) {
$return = array('status' => 0, 'data' => L('PUBLIC_ID_NOEXIST'));
echo json_encode($return);
exit;
}
$map['key'] = t($_POST['key']);
$map['list'] = 'dict';
if ($res = model('Xdata')->where($map)->delete()) {
F('_xdata_lget_dict', null);
//TODO 记录知识
} else {
$error = model('Xdata')->getError();
empty($error) && ($error = L('SSC_DELETE_FAIL'));
$return = array('status' => 0, 'data' => $error);
}
echo json_encode($return);
exit;
}