作者 lyh

gx

... ... @@ -323,7 +323,10 @@ 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';
$rs = http_post($url,$param,['charset=utf-8'],false);
$this->response('success',Code::SUCCESS,$rs);
if(200 == (int)$rs){
$this->response('success',Code::SUCCESS,$rs);
}
return 0;
// $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);
}
... ...