作者 lyh

gx

... ... @@ -148,11 +148,12 @@ class VideoTask extends Command
],
'task_id' => $task_id,
'callback_url' => env('APP_URL') . '/api/video_task_callback',
'is_ytb'=>true
'is_ytb'=>false //:todo
];
$result = Http::post('http://216.250.255.116:7866/create_task', $data);
$res_json = json_decode($result,true);
$val->task_id = $task_id;
$val->status = KeywordVideoTaskLog::STATUS_ERROR;
if(isset($res_json['code']) && ($res_json['code'] == 200)){
$val->status = KeywordVideoTaskLog::STATUS_RUNNING;
}
... ...
... ... @@ -16,6 +16,7 @@ class KeywordVideoTaskLog extends Base
const STATUS_INIT = 0;
const STATUS_RUNNING = 1;
const STATUS_FINISH = 2;
const STATUS_ERROR = 3;
protected $table = 'gl_keyword_video_task_log';
}
... ...