作者 邓超

job

... ... @@ -134,6 +134,15 @@ class Job extends Base {
public function info(){
$jobId = app()->request('id', 0, 'intval');
$ret = db()->first(sendJobsSql::find($jobId));
app()->_json($ret);
}
}
... ...
... ... @@ -84,4 +84,8 @@ class sendJobsSql {
}
public static function find(int $id):string {
return "select * from `".static::$table."` where `id` = ".$id;
}
}
... ...
... ... @@ -76,6 +76,7 @@ return [
'job/start' => [\Controller\Job::class, 'start'],
// 任务详情
'job/detail' => [\Controller\Job::class, 'jobDetail'],
'job/info' => [\Controller\Job::class, 'info'],
// 上传图片
'upload/image' => [\Controller\Upload::class, 'image'],
... ...