From d9cc8061774e02555600de61f150b7c9fb414622 Mon Sep 17 00:00:00 2001 From: ypsdf1 Date: Wed, 8 Jul 2026 11:08:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=20orders.php=E8=AF=8A?= =?UTF-8?q?=E6=96=AD=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86=E4=B8=ADE=5FRECOV?= =?UTF-8?q?ERABLE=5FERROR=E8=AF=AF=E7=94=A8=E5=86=92=E5=8F=B7=E5=AF=BC?= =?UTF-8?q?=E8=87=B4PHP=20Parse=20error(=E6=95=B4=E9=A1=B5=E5=B4=A9?= =?UTF-8?q?=E6=BA=83/loadOrders=E6=9C=AA=E5=AE=9A=E4=B9=89)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 第12行数组 E_RECOVERABLE_ERROR:'Recoverable' 误用冒号(应为 =>),导致PHP解析失败、整页只输出Parse error、所有前端JS函数(loadOrders等)缺失 - 改为 E_RECOVERABLE_ERROR=>'Recoverable',页面恢复正常(实测线上HTTP 200、STATE JSON有效、全部JS函数就位) --- orders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orders.php b/orders.php index 6f4bb71..a1f616f 100644 --- a/orders.php +++ b/orders.php @@ -9,7 +9,7 @@ error_reporting(E_ALL); ini_set('display_errors', '0'); set_error_handler(function($errno, $errstr, $errfile, $errline) { - $types = [E_WARNING=>'Warning',E_NOTICE=>'Notice',E_USER_ERROR=>'UserError',E_USER_WARNING=>'UserWarning',E_USER_NOTICE=>'UserNotice',E_STRICT=>'Strict',E_DEPRECATED=>'Deprecated',E_RECOVERABLE_ERROR:'Recoverable']; + $types = [E_WARNING=>'Warning',E_NOTICE=>'Notice',E_USER_ERROR=>'UserError',E_USER_WARNING=>'UserWarning',E_USER_NOTICE=>'UserNotice',E_STRICT=>'Strict',E_DEPRECATED=>'Deprecated',E_RECOVERABLE_ERROR=>'Recoverable']; $type = isset($types[$errno]) ? $types[$errno] : "Error[$errno]"; if (file_exists(__DIR__ . '/core.php')) { // core.php may not be loaded yet, define minimal debugLog