From eff09869f3e6357356102ef02f7b933a4fe8b24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=81=E5=A3=AE=E6=88=90=E9=95=BF?= <2291200076@qq.com> Date: Sat, 16 Jan 2021 17:33:23 +0800 Subject: [PATCH] Update index.php --- controller/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controller/index.php b/controller/index.php index 35e6251..aa4a93f 100644 --- a/controller/index.php +++ b/controller/index.php @@ -101,9 +101,8 @@ function base64($url){ $host = $urls['host']; //获取端口 $port = empty( $urls['port'] ) ? '' : ':'.$urls['port']; - $dir = dirname($_SERVER['PHP_SELF']); - $new_url = $scheme.$host.$port.$dir; + $new_url = $scheme.$host.$port; return base64_encode($new_url); }