正在显示
1 个修改的文件
包含
0 行增加
和
13 行删除
| @@ -312,17 +312,4 @@ class LoginController extends BaseController | @@ -312,17 +312,4 @@ class LoginController extends BaseController | ||
| 312 | } | 312 | } |
| 313 | return $data; | 313 | return $data; |
| 314 | } | 314 | } |
| 315 | - | ||
| 316 | - public function ceshi(){ | ||
| 317 | - $path = '/upload/p/1577/image_other/2024-04'; | ||
| 318 | - $fileName = '661e42970abd921831.png'; | ||
| 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'; | ||
| 321 | - $code = shell_exec($cmd); | ||
| 322 | - if(200 != (int)$code){ | ||
| 323 | - $errorFileModel = new ErrorFile(); | ||
| 324 | - $errorFileModel->add(['path'=>$path.'/'.$fileName]); | ||
| 325 | - } | ||
| 326 | - $this->response('success'); | ||
| 327 | - } | ||
| 328 | } | 315 | } |
-
请 注册 或 登录 后发表评论