|
...
|
...
|
@@ -35,7 +35,7 @@ class SyncImageFileJob implements ShouldQueue |
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
$file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,$this->param['location']);
|
|
|
|
$cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php';
|
|
|
|
$cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php';
|
|
|
|
echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL;
|
|
|
|
$code = shell_exec($cmd);
|
|
|
|
if(200 != (int)$code){
|
...
|
...
|
|