wallet tron transactions
This commit is contained in:
@ -10,12 +10,12 @@ abstract class TableBaseCache extends BaseCache
|
||||
public array $get_columns = ['*'];
|
||||
public array $get_exclude_columns = [];
|
||||
|
||||
function loadTable(): array|null
|
||||
function loadTable(): array|string|null
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
function loadData(): array|null
|
||||
function loadData(): array|string|null
|
||||
{
|
||||
//默认获取表数据方式
|
||||
if (!empty($table_class)) {
|
||||
@ -23,7 +23,7 @@ abstract class TableBaseCache extends BaseCache
|
||||
//排除不需要的字段
|
||||
if (!empty($this->get_exclude_columns) && $this->get_columns != ['*']) $this->get_columns = array_diff($this->get_columns, $this->get_exclude_columns);
|
||||
$oData = $oTable->findItemByWhere([$this->primary_key_column => $this->primary_key], $this->get_columns);
|
||||
if($oData->isEmpty()) return null;
|
||||
if ($oData->isEmpty()) return null;
|
||||
$aData = $oData->toArray();
|
||||
//排除不需要的字段
|
||||
if (!empty($this->get_exclude_columns) && $this->get_columns == ['*'] && !empty($aData)) {
|
||||
|
||||
Reference in New Issue
Block a user