From d73a6cfab9216f025521997af42b068621cdf7ad Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Wed, 18 Sep 2024 14:20:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=8F=A3=E6=96=87=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 8fd8f15..3fe7b6c 100644 --- a/index.php +++ b/index.php @@ -22,8 +22,13 @@ $this->control_func = 'home'; } else { $array = explode('/', $argv); - $this->control_name = 'index'; - $this->control_func = $array[0]=='' ? 'home' : $array[0]; + if(count($array)==1){ + $this->control_name = 'index'; + $this->control_func = $array[0]=='' ? 'home' : $array[0]; + }else{ + $this->control_name = $array[0]; + $this->control_func = $array[1]=='' ? 'home' : $array[1]; + } } // 还原GET