From d74d90113f4dda8f464d07c84f87fa268d9b601c Mon Sep 17 00:00:00 2001 From: ming <8966092@163.com> Date: Mon, 25 Feb 2019 09:31:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=85=AC=E5=85=B1=E6=96=87=E4=BB=B6function.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/common.php b/application/common.php index 169a42f2..ba919589 100644 --- a/application/common.php +++ b/application/common.php @@ -9,10 +9,16 @@ use think\Db; use think\Container; +use think\facade\Env; use app\user\model\User; // 应用公共文件 +// 加载自定义公共文件 +if (is_file(Env::get('app_path') . 'function.php')) { + include_once Env::get('app_path') . 'function.php'; +} + if (!function_exists('is_signin')) { /** * 判断是否登录