HomeAction::_delLogs PHP Method

_delLogs() public method

删除知识操作
public _delLogs ( )
    public function _delLogs()
    {
        $return = array('status' => 1, 'data' => '');
        if (model('Logs')->dellogs($_REQUEST['id'], t($_REQUEST['table']))) {
            $return['data'] = '删除成功';
        } else {
            $return['status'] = 0;
            $return['data'] = '删除失败';
        }
        !is_array($_POST['id']) && ($_POST['id'] = array($_POST['id']));
        LogRecord('admin_system', 'dellog', array('nums' => count($_POST['id']), 'ids' => implode(',', $_POST['id'])), true);
        exit(json_encode($return));
    }