From 8fe70b8624e82d9bee508ebc0a2925f15eddb1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joel=E9=83=91?= <626279057@qq.com> Date: Tue, 11 Jun 2019 15:29:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Backend.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 100222f4c..d46b854f9 100644 --- a/application/common/controller/Backend.php +++ b/application/common/controller/Backend.php @@ -266,7 +266,7 @@ class Backend extends Controller if ($relationSearch) { if (!empty($this->model)) { $name = \think\Loader::parseName(basename(str_replace('\\', '/', get_class($this->model)))); - $tableName = $name . '.'; + $tableName = Config::get('database.prefix') . $name . '.'; } $sortArr = explode(',', $sort); foreach ($sortArr as $index => & $item) { -- Gitee