['Cid', 'AppId', 'Status'], 'between' => ['StartTime'], ]; } /** * @notes 获取列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2024/03/26 16:52 */ public function lists(): array { $appid = env('app.appid', 'daodao'); return CidConfig::where($this->searchWhere) ->where("AppId", $appid) ->field(['Cid', 'NoRule', 'Name', 'Recommend', 'AppId', 'GameIp', 'GamePort', 'Inner', 'Status', 'StartTime']) ->limit($this->limitOffset, $this->limitLength) ->order(['Cid' => 'desc']) ->select() ->toArray(); } /** * @notes 获取数量 * @return int * @author likeadmin * @date 2024/03/26 16:52 */ public function count(): int { return CidConfig::where($this->searchWhere)->count(); } }