作者 lyh

gx

... ... @@ -81,7 +81,7 @@ if (!function_exists('http_post')) {
if($is_json){
return json_decode($res, true);
}
return $res;
return trim($res);
}
}
... ...
... ... @@ -323,7 +323,7 @@ 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);
// $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);
}
... ...