bugfix 修复参数定义后未使用,导致传参无效的问题

pull/373/head
HID丨emotion 2021-11-23 07:03:47 +00:00 committed by Gitee
parent 093d60b719
commit d3ddc61386
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,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] . '.';