作者 lyh

gx

... ... @@ -47,7 +47,7 @@ class AiVideoController extends BaseController
$cosService = new CosService();
$imagePath = $cosService->uploadRemote($info['project_id'],'video',$data['url']);
$this->saveLog($imagePath);
try {
// try {
if($imagePath){
$cos = config('filesystems.disks.cos');
$url = $cos['cdn1'].'/'.$imagePath;
... ... @@ -64,9 +64,9 @@ class AiVideoController extends BaseController
$this->saveLog('返回的数据详情。'.$images);
$aiVideoAutoLogModel->edit(['images'=>$images,'result'=>json_encode($this->param,true),'status'=>1],['id'=>$info['id']]);
}
}catch (\Exception $e){
$this->saveLog('上传图片失败,获取到数据详情。'.$e->getMessage());
}
// }catch (\Exception $e){
// $this->saveLog('上传图片失败,获取到数据详情。'.$e->getMessage());
// }
$this->response('success');
}
... ...