正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -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]); |
-
请 注册 或 登录 后发表评论