正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
| @@ -312,8 +312,6 @@ class LoginController extends BaseController | @@ -312,8 +312,6 @@ class LoginController extends BaseController | ||
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | public function ceshi(){ | 314 | public function ceshi(){ |
| 315 | - var_dump(11111111); | ||
| 316 | - die(); | ||
| 317 | //同步到大文件 | 315 | //同步到大文件 |
| 318 | $path = '/upload/m/video/2023-08'; | 316 | $path = '/upload/m/video/2023-08'; |
| 319 | $fileName = '64e81b9b80b1331590.mp4'; | 317 | $fileName = '64e81b9b80b1331590.mp4'; |
| @@ -324,7 +322,8 @@ class LoginController extends BaseController | @@ -324,7 +322,8 @@ class LoginController extends BaseController | ||
| 324 | ]; | 322 | ]; |
| 325 | @file_put_contents(storage_path('logs/lyh_error.log'), 'ceshi' . PHP_EOL, FILE_APPEND); | 323 | @file_put_contents(storage_path('logs/lyh_error.log'), 'ceshi' . PHP_EOL, FILE_APPEND); |
| 326 | $url = 'https://v6-file.globalso.com/upload.php'; | 324 | $url = 'https://v6-file.globalso.com/upload.php'; |
| 327 | - return http_post($url,$param,['charset=utf-8'],false); | 325 | + $rs = http_post($url,$param,['charset=utf-8'],false); |
| 326 | + $this->response('success',Code::SUCCESS,$rs); | ||
| 328 | // $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$path.'" https://v6-file.globalso.com/upload.php'; | 327 | // $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$path.'" https://v6-file.globalso.com/upload.php'; |
| 329 | // return shell_exec($cmd); | 328 | // return shell_exec($cmd); |
| 330 | } | 329 | } |
-
请 注册 或 登录 后发表评论