From 52c83348bc5c2c3ac45ee2c926f3acc7aaa24cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AD=90=E6=B6=B5?= <3125976329@qq.com> Date: Wed, 12 Apr 2023 03:47:46 +0000 Subject: [PATCH] =?UTF-8?q?update=20application/common/controller/Backend.?= =?UTF-8?q?php.=20=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=99=A8=E5=85=B3=E8=81=94=E6=9F=A5=E8=AF=A2=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王子涵 <3125976329@qq.com> --- application/common/controller/Backend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common/controller/Backend.php b/application/common/controller/Backend.php index b70eede87..3bfaaf412 100644 --- a/application/common/controller/Backend.php +++ b/application/common/controller/Backend.php @@ -284,7 +284,7 @@ class Backend extends Controller $bind = []; $name = ''; $aliasName = ''; - if (!empty($this->model) && $this->relationSearch) { + if (!empty($this->model) && $relationSearch) { $name = $this->model->getTable(); $alias[$name] = Loader::parseName(basename(str_replace('\\', '/', get_class($this->model)))); $aliasName = $alias[$name] . '.'; -- Gitee