From 186f64d54445b5fae40283a8d05095be8eeda899 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 4 Jun 2026 18:52:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20prepend=20=E5=85=A8=E9=83=A8=20option=20?= =?UTF-8?q?to=20get=5Fsearch=20results?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/get_search_providerid.dspy | 2 +- wwwroot/api/get_search_upappid.dspy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/api/get_search_providerid.dspy b/wwwroot/api/get_search_providerid.dspy index 1b20c41..cf273a3 100644 --- a/wwwroot/api/get_search_providerid.dspy +++ b/wwwroot/api/get_search_providerid.dspy @@ -6,7 +6,7 @@ try: "select id as value, orgname as text from organization order by orgname", {} ) - return orgs + return json.dumps([{'value': '', 'text': '全部'}] + list(orgs), ensure_ascii=False) except Exception as e: debug(f'get_search_providerid error: {e}') diff --git a/wwwroot/api/get_search_upappid.dspy b/wwwroot/api/get_search_upappid.dspy index 6f6a55c..2ecff01 100644 --- a/wwwroot/api/get_search_upappid.dspy +++ b/wwwroot/api/get_search_upappid.dspy @@ -6,7 +6,7 @@ try: "select id as value, name as text from upapp order by name", {} ) - return apps + return json.dumps([{'value': '', 'text': '全部'}] + list(apps), ensure_ascii=False) except Exception as e: debug(f'get_search_upappid error: {e}')