From 620e7ce21c69632d6b45179810bb6a5e2cea23d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=B1=95=E9=B9=8F?= Date: Tue, 25 Nov 2025 17:20:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=E7=A1=AC=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E7=9B=B8=E5=AF=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改url.txt和auth.json的路径从绝对路径改为相对路径,提高代码的可移植性和部署灵活性 --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index f3085ac..e0b9100 100644 --- a/index.php +++ b/index.php @@ -11,8 +11,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') { } // 定义文件路径 -$urlFilePath = 'c:\\Users\\吴展鹏\\wangpu_auth\\url.txt'; -$authFilePath = 'c:\\Users\\吴展鹏\\wangpu_auth\\auth.json'; +$urlFilePath = 'url.txt'; +$authFilePath = 'auth.json'; // 读取并返回auth.json文件的内容 if (file_exists($authFilePath)) {