11
This commit is contained in:
@ -12,13 +12,16 @@ abstract class TableBaseCache extends BaseCache
|
||||
|
||||
function loadTable(): array|string|null
|
||||
{
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function loadData(): array|string|null
|
||||
{
|
||||
|
||||
//默认获取表数据方式
|
||||
if (!empty($table_class)) {
|
||||
|
||||
$oTable = new $this->table_class();
|
||||
//排除不需要的字段
|
||||
if (!empty($this->get_exclude_columns) && $this->get_columns != ['*']) $this->get_columns = array_diff($this->get_columns, $this->get_exclude_columns);
|
||||
|
||||
Reference in New Issue
Block a user