fix: if no php-curl, can show error message now

pull/586/merge
qkqpttgf 2022-05-15 16:04:04 +08:00 committed by GitHub
parent 326e7ba0e5
commit be07cced24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ if (isset($_SERVER['USER'])&&$_SERVER['USER']==='qcloud') {
} else { } else {
include 'platform/Normal.php'; include 'platform/Normal.php';
if (!function_exists('curl_init')) { if (!function_exists('curl_init')) {
return message('<font color="red">Need curl</font>, please install php-curl.', 'Error', 500); http_response_code(500);
echo '<font color="red">Need curl</font>, please install php-curl.';
exit(1);
} }
$path = getpath(); $path = getpath();
//echo 'path:'. $path; //echo 'path:'. $path;