1
0
mirror of https://gitee.com/zoujingli/ThinkAdmin.git synced 2025-04-06 03:58:04 +08:00

[更新]优化基础控制器

This commit is contained in:
Anyon 2017-06-02 14:56:54 +08:00
parent 70b4433f6a
commit aba79cc376

@ -118,12 +118,12 @@ class BasicAdmin extends Controller {
} else { } else {
$result['list'] = $db->select(); $result['list'] = $db->select();
} }
if (false === $this->_callback('_data_filter', $result['list']) || !$isDisplay) { if (false !== $this->_callback('_data_filter', $result['list']) && $isDisplay) {
return $result;
}
!empty($this->title) && $this->assign('title', $this->title); !empty($this->title) && $this->assign('title', $this->title);
return $this->fetch('', $result); return $this->fetch('', $result);
} }
return $result;
}
/** /**
* 当前对象回调成员方法 * 当前对象回调成员方法