From 8db1fb3f6a50a95448c44ca1f2f73ce5ef8f83c5 Mon Sep 17 00:00:00 2001 From: sunxiyuan Date: Mon, 27 Apr 2020 14:56:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E6=96=B9=E6=B3=95=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E9=9D=99=E6=80=81=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 3b08234..6407821 100644 --- a/index.php +++ b/index.php @@ -142,7 +142,7 @@ EOT; }); } - private function success($message = '', $data = []) { + private static function success($message = '', $data = []) { header('Content-Type:application/json; charset=utf-8'); echo json_encode([ @@ -153,7 +153,7 @@ EOT; exit; } - private function error($message = '', $code = - 1) { + private static function error($message = '', $code = - 1) { header('Content-Type:application/json; charset=utf-8'); header('Status:500'); @@ -164,7 +164,7 @@ EOT; exit; } - private function set_wp_option( + private static function set_wp_option( $community = 0, $custom_api_server = '', $custom_download_server = ''