diff --git a/app/admin/lists/ChangeLogLists.php b/app/admin/lists/ChangeLogLists.php index 28e0614d..b01da57c 100644 --- a/app/admin/lists/ChangeLogLists.php +++ b/app/admin/lists/ChangeLogLists.php @@ -1,66 +1,67 @@ - ['model', 'link_id', 'nums', 'pm', 'url'], - '%like%' => ['mark'], - ]; - } - - - /** - * @notes 获取列表 - * @return array - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\DbException - * @throws \think\db\exception\ModelNotFoundException - * @author admin - * @date 2025/01/06 10:03 - */ - public function lists(): array - { - return ChangeLog::where($this->searchWhere) - ->field(['id', 'model', 'link_id', 'nums', 'pm', 'url', 'mark']) - ->limit($this->limitOffset, $this->limitLength) - ->order(['id' => 'desc']) - ->select() - ->toArray(); - } - - - /** - * @notes 获取数量 - * @return int - * @author admin - * @date 2025/01/06 10:03 - */ - public function count(): int - { - return ChangeLog::where($this->searchWhere)->count(); - } - + ['model', 'link_id', 'nums', 'pm'], + '%like%' => ['mark','url'], + + ]; + } + + + /** + * @notes 获取列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author admin + * @date 2025/01/06 10:03 + */ + public function lists(): array + { + return ChangeLog::where($this->searchWhere) + ->field(['id', 'model', 'link_id', 'nums', 'pm', 'url', 'mark']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取数量 + * @return int + * @author admin + * @date 2025/01/06 10:03 + */ + public function count(): int + { + return ChangeLog::where($this->searchWhere)->count(); + } + } \ No newline at end of file