error (or unintelligible) codes in refreshcache

This commit is contained in:
qkqpttgf 2020-02-12 11:37:54 +08:00 committed by GitHub
parent b08392afc4
commit ed8b3a1584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -137,6 +137,7 @@ function curl_request($url, $data = false, $headers = [])
$response['body'] = curl_exec($ch); $response['body'] = curl_exec($ch);
$response['stat'] = curl_getinfo($ch,CURLINFO_HTTP_CODE); $response['stat'] = curl_getinfo($ch,CURLINFO_HTTP_CODE);
curl_close($ch); curl_close($ch);
if ($response['stat']==0) return curl_request($url, $data, $headers);
return $response; return $response;
} }
@ -624,7 +625,7 @@ function adminoperate($path)
if ($_GET['RefreshCache']) { if ($_GET['RefreshCache']) {
//savecache('path_' . $path1, json_decode('{}',true), 1); //savecache('path_' . $path1, json_decode('{}',true), 1);
savecache($path . '/password', '', 1); savecache($path . '/password', '', 1);
return output('<meta http-equiv="refresh" content="2;URL=./">'.getconstStr('RefreshCache'), 302); return message('<meta http-equiv="refresh" content="2;URL=./">', getconstStr('RefreshCache'), 302);
} }
return $tmparr; return $tmparr;
} }