From 51f9776f404d8de321d50a831366d82c5b480373 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 22 Apr 2026 13:18:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8return=E8=80=8C?= =?UTF-8?q?=E9=9D=9Eprint=E8=BF=94=E5=9B=9E=E6=95=B0=E7=BB=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/hermes_services/list/index.dspy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/hermes_services/list/index.dspy b/wwwroot/hermes_services/list/index.dspy index 4f00989..20b40a9 100644 --- a/wwwroot/hermes_services/list/index.dspy +++ b/wwwroot/hermes_services/list/index.dspy @@ -14,7 +14,7 @@ try: }) # Return array directly for code component - print(json.dumps(result, ensure_ascii=False)) + return result except Exception as e: # On error or no data, return empty array - print(json.dumps([], ensure_ascii=False)) \ No newline at end of file + return [] \ No newline at end of file