作者 lyh

gx

... ... @@ -312,8 +312,6 @@ class LoginController extends BaseController
}
public function ceshi(){
var_dump(11111111);
die();
//同步到大文件
$path = '/upload/m/video/2023-08';
$fileName = '64e81b9b80b1331590.mp4';
... ... @@ -324,7 +322,8 @@ class LoginController extends BaseController
];
@file_put_contents(storage_path('logs/lyh_error.log'), 'ceshi' . PHP_EOL, FILE_APPEND);
$url = 'https://v6-file.globalso.com/upload.php';
return http_post($url,$param,['charset=utf-8'],false);
$rs = http_post($url,$param,['charset=utf-8'],false);
$this->response('success',Code::SUCCESS,$rs);
// $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$path.'" https://v6-file.globalso.com/upload.php';
// return shell_exec($cmd);
}
... ...