result = [{'value': '', 'text': '全部'}] try: async with get_sor_context(request._run_ns, 'world') as sor: rows = await sor.sqlExe('select id as value, name as text from world order by name', {}) result = [{'value': '', 'text': '全部'}] + list(rows) except Exception as e: debug('get_search_world_id error: %s' % e) return result