作者 lyh

gx

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