作者 lyh

gx

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