From 094454117cd63d0130bcc257106df302ee7e76b2 Mon Sep 17 00:00:00 2001 From: xurongyao Date: Sun, 16 Sep 2018 21:47:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E5=AE=89=E8=A3=85=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=EF=BC=8C=E6=94=AF=E6=8C=81=E6=A0=B9=E7=9B=AE=E5=BD=95?= =?UTF-8?q?index.php=E8=AE=BF=E9=97=AE=EF=BC=8C=E4=B9=9F=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E5=83=8Ftp5=E4=B8=80=E6=A0=B7=E5=8F=AA=E5=AF=B9=E5=A4=96?= =?UTF-8?q?=E5=BC=80=E6=94=BEpublic=E4=B8=80=E4=B8=AA=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/config.php | 14 +++++++------- index.php | 2 +- public/index.php | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/application/config.php b/application/config.php index 23cfe740..50110628 100644 --- a/application/config.php +++ b/application/config.php @@ -144,13 +144,13 @@ return [ // 视图输出字符串内容替换 'view_replace_str' => [ - '{__ADMIN_PATH}'=>DS.PUBILC_PATH.'system/', - '{__FRAME_PATH}'=>DS.PUBILC_PATH.'system/frame/', - '{__PLUG_PATH}'=>DS.PUBILC_PATH.'static/plug/', - '{__MODULE_PATH}'=>DS.PUBILC_PATH.'system/module/', - '{__STATIC_PATH}'=>DS.PUBILC_PATH.'static/', - '{__PUBLIC_PATH}'=>DS.PUBILC_PATH, - '{__WAP_PATH}'=>DS.PUBILC_PATH.'wap/first/static/' + '{__ADMIN_PATH}'=>PUBILC_PATH.'system/', + '{__FRAME_PATH}'=>PUBILC_PATH.'system/frame/', + '{__PLUG_PATH}'=>PUBILC_PATH.'static/plug/', + '{__MODULE_PATH}'=>PUBILC_PATH.'system/module/', + '{__STATIC_PATH}'=>PUBILC_PATH.'static/', + '{__PUBLIC_PATH}'=>PUBILC_PATH, + '{__WAP_PATH}'=>PUBILC_PATH.'wap/first/static/' ], // 默认跳转页面对应的模板文件 'dispatch_success_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl', diff --git a/index.php b/index.php index 942aa0eb..615d71bd 100644 --- a/index.php +++ b/index.php @@ -24,6 +24,6 @@ if(file_exists("./public/install/") && !file_exists("./public/install/install.lo // 定义应用目录 define('APP_PATH', __DIR__ . '/application/'); //静态文件目录 -define('PUBILC_PATH', 'public/'); +define('PUBILC_PATH', '/public/'); // 加载框架引导文件 require __DIR__ . '/thinkphp/start.php'; diff --git a/public/index.php b/public/index.php index 04fca0a3..61a0dff5 100644 --- a/public/index.php +++ b/public/index.php @@ -24,6 +24,6 @@ if(file_exists("./install/") && !file_exists("./install/install.lock")){ // 定义应用目录 define('APP_PATH', __DIR__ . '/../application/'); //静态文件目录 -define('PUBILC_PATH', ''); +define('PUBILC_PATH', '/'); // 加载框架引导文件 require __DIR__ . '/../thinkphp/start.php';