作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -639,8 +639,9 @@ if (!function_exists('getImageUrl')) { @@ -639,8 +639,9 @@ if (!function_exists('getImageUrl')) {
639 return 'https:'.$path; 639 return 'https:'.$path;
640 } 640 }
641 if($location == 0){ 641 if($location == 0){
642 - $cos = config('filesystems.disks.cos');  
643 - $cosCdn = ($storage_type == 0) ? $cos['cdn'] : $cos['cdn1']; 642 +// $cos = config('filesystems.disks.cos');
  643 +// $cosCdn = ($storage_type == 0) ? $cos['cdn'] : $cos['cdn1'];
  644 + $cosCdn = 'https://file.globalso.com';//TODO::暂时使用
644 $url = $cosCdn.$path; 645 $url = $cosCdn.$path;
645 }else{ 646 }else{
646 $s3 = config('filesystems.disks.s3'); 647 $s3 = config('filesystems.disks.s3');
@@ -104,11 +104,6 @@ class AiBlogLogic extends BaseLogic @@ -104,11 +104,6 @@ class AiBlogLogic extends BaseLogic
104 if($result['status'] == 200){ 104 if($result['status'] == 200){
105 $aiBlogTaskModel = new AiBlogTask(); 105 $aiBlogTaskModel = new AiBlogTask();
106 $aiBlogTaskModel->addReturnId(['project_id'=>$this->user['project_id'],'type'=>2,'task_id'=>$result['data']['task_id'],'status'=>1]); 106 $aiBlogTaskModel->addReturnId(['project_id'=>$this->user['project_id'],'type'=>2,'task_id'=>$result['data']['task_id'],'status'=>1]);
107 - //增加一条更新列表页的记录  
108 - $aiThreeInfo = $aiBlogTaskModel->read(['project_id'=>$this->user['project_id'],'type'=>3,'status'=>1]);  
109 - if($aiThreeInfo === false){  
110 - $aiBlogTaskModel->addReturnId(['project_id'=>$this->user['project_id'],'type'=>3,'status'=>1]);  
111 - }  
112 $aiBlogModel = new AiBlog(); 107 $aiBlogModel = new AiBlog();
113 $aiBlogModel->addReturnId(['keyword'=>$this->param['keyword'], 'status'=>1, 'task_id'=>$result['data']['task_id'],'project_id'=>$this->user['project_id'], 108 $aiBlogModel->addReturnId(['keyword'=>$this->param['keyword'], 'status'=>1, 'task_id'=>$result['data']['task_id'],'project_id'=>$this->user['project_id'],
114 ]); 109 ]);
@@ -35,7 +35,7 @@ class SyncImageFileJob implements ShouldQueue @@ -35,7 +35,7 @@ class SyncImageFileJob implements ShouldQueue
35 public function handle() 35 public function handle()
36 { 36 {
37 $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,$this->param['location']); 37 $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,$this->param['location']);
38 - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; 38 + $cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php';
39 echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; 39 echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL;
40 $code = shell_exec($cmd); 40 $code = shell_exec($cmd);
41 if(200 != (int)$code){ 41 if(200 != (int)$code){