From 2c366f06b33af347364960e883b34059d88f8e02 Mon Sep 17 00:00:00 2001 From: Chrisleung Date: Wed, 10 Oct 2018 11:25:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=A7=E8=A1=8C=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=B5=8B=E8=AF=95=E6=97=B6,fast\Form=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E5=AE=9A=E4=B9=89=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/behavior/Common.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/common/behavior/Common.php b/application/common/behavior/Common.php index 0b16877a..7e436948 100644 --- a/application/common/behavior/Common.php +++ b/application/common/behavior/Common.php @@ -59,7 +59,9 @@ class Common \think\Cookie::set('think_var', $request->get('lang')); } // Form别名 - class_alias('fast\\Form', 'Form'); + if (!class_exists('Form')) { + class_alias('fast\\Form', 'Form'); + } } public function addonBegin(&$request)