作者 lyh

gx

@@ -81,7 +81,7 @@ if (!function_exists('http_post')) { @@ -81,7 +81,7 @@ if (!function_exists('http_post')) {
81 if($is_json){ 81 if($is_json){
82 return json_decode($res, true); 82 return json_decode($res, true);
83 } 83 }
84 - return $res; 84 + return trim($res);
85 } 85 }
86 } 86 }
87 87
@@ -323,7 +323,7 @@ class LoginController extends BaseController @@ -323,7 +323,7 @@ class LoginController extends BaseController
323 @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);
324 $url = 'https://v6-file.globalso.com/upload.php'; 324 $url = 'https://v6-file.globalso.com/upload.php';
325 $rs = 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); 326 +
327 // $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';
328 // return shell_exec($cmd); 328 // return shell_exec($cmd);
329 } 329 }