|
...
|
...
|
@@ -319,6 +319,8 @@ class LoginController extends BaseController |
|
|
|
$file_path = getImageUrl($path.'/'.$fileName);
|
|
|
|
$cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$path.'" https://v6-file.globalso.com/upload.php';
|
|
|
|
$code = shell_exec($cmd);
|
|
|
|
echo $code;
|
|
|
|
return;
|
|
|
|
if(200 != (int)$code){
|
|
|
|
$errorFileModel = new ErrorFile();
|
|
|
|
$errorFileModel->add(['path'=>$path.'/'.$fileName]);
|
...
|
...
|
|