searchWhere) ->json(['package_info'], true) ->order(['sort' => 'desc', 'id' => 'desc']) ->limit($this->limitOffset, $this->limitLength) ->select() ->toArray(); } /** * @notes 统计 * @return int * @throws @\think\db\exception\DbException * @author L * @date 2024-08-15 11:45:40 */ public function count(): int { return GiftPackage::where($this->searchWhere)->count(); } /** * @notes 搜索条件 * @return array * @author L * @date 2024-08-15 11:45:40 */ public function setSearch(): array { return [ '=' => ['type'] ]; } }