From ed8b3a158410c453795f87949af30a65a01750b4 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Wed, 12 Feb 2020 11:37:54 +0800 Subject: [PATCH] error (or unintelligible) codes in refreshcache --- function/common.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/function/common.php b/function/common.php index ea03fe4..5581bd4 100644 --- a/function/common.php +++ b/function/common.php @@ -137,6 +137,7 @@ function curl_request($url, $data = false, $headers = []) $response['body'] = curl_exec($ch); $response['stat'] = curl_getinfo($ch,CURLINFO_HTTP_CODE); curl_close($ch); + if ($response['stat']==0) return curl_request($url, $data, $headers); return $response; } @@ -624,7 +625,7 @@ function adminoperate($path) if ($_GET['RefreshCache']) { //savecache('path_' . $path1, json_decode('{}',true), 1); savecache($path . '/password', '', 1); - return output(''.getconstStr('RefreshCache'), 302); + return message('', getconstStr('RefreshCache'), 302); } return $tmparr; }