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

This commit is contained in:
qkqpttgf
2022-05-15 16:04:04 +08:00
committed by GitHub
parent 326e7ba0e5
commit be07cced24
+3 -1
View File
@@ -67,7 +67,9 @@ if (isset($_SERVER['USER'])&&$_SERVER['USER']==='qcloud') {
} else {
include 'platform/Normal.php';
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();
//echo 'path:'. $path;