search($where)->order('sort desc,id desc') ->field($field) ->page($page, $limit) ->select(); } /** * 获取会员类型api接口 * @param array $where * @return mixed * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException */ public function getApiList(array $where) { return $this->search()->where($where)->order('sort desc')->select()->toArray(); } }