HomeAction::doDeleteSchedule PHP Method

doDeleteSchedule() public method

删除计划任务操作
public doDeleteSchedule ( )
    public function doDeleteSchedule()
    {
        $return = array('status' => 1, 'data' => L('PUBLIC_DELETE_SUCCESS'));
        $ids = is_array($_REQUEST['id']) ? $_REQUEST['id'] : array(intval($_REQUEST['id']));
        $res = model('Schedule')->delSchedule($ids);
        if ($res) {
            //TODO:记录知识
        } else {
            $return['status'] = 0;
            $return['data'] = L('PUBLIC_DELETE_FAIL');
        }
        exit(json_encode($return));
    }