application/manage/controller/Job.php
public function delJob(Request $request)
    {
        $job_id = $request->param('job_id');
        if (empty($job_id)) {
            return $this->error('任务ID为空');
        }
        
        $res = JobLogic::model()->del($job_id);
        if ($res) {
            return $this->success('删除任务成功', 'history.go(0)');
        } else {
            return $this->error('删除任务失败');
        }
    }
public function delJob(Request $request)
    {
        $job_id = $request->param('job_id');
        if (empty($job_id)) {
            return $this->error('任务ID为空');
        }
        
        $res = JobLogic::model()->del($job_id);
        if ($res) {
            return $this->success('删除任务成功', 'history.go(0)');
        } else {
            return $this->error('删除任务失败');
        }
    }
删除任务

@param Request $request
@return mixed