From 4d56b3d06868d3d8982ba82e6279e9371d1c0b35 Mon Sep 17 00:00:00 2001 From: linauror Date: Fri, 2 Aug 2024 22:06:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=E6=97=A0=E6=B3=95=E8=BF=9B=E8=A1=8C=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.php b/api.php index e4ab2c1..65a476c 100644 --- a/api.php +++ b/api.php @@ -10,7 +10,7 @@ try { $post = json_decode(file_get_contents("php://input"), true); - $_POST = array_merge($_POST,$post); + $_POST = array_merge($_POST,$post??[]); } catch (Exception $th) { }