From 0653355c5e1e754e3765598a90deb1fabcb8bce4 Mon Sep 17 00:00:00 2001 From: jinye_huang Date: Fri, 11 Jul 2025 15:34:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E9=A3=8E=E6=A0=BC?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=97=A0=E6=B3=95=E6=AD=A3=E7=A1=AE=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../prompt_service.cpython-312.pyc | Bin 29264 -> 29356 bytes api/services/prompt_service.py | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/services/__pycache__/prompt_service.cpython-312.pyc b/api/services/__pycache__/prompt_service.cpython-312.pyc index 10051f942adf108822a3182bb7e841b94e18c666..9081add8d26650be88995455bf9f81ad07ee0308 100644 GIT binary patch delta 521 zcmcccgmKMNM!wU$yj%=G;IOYCgC$`j-&HZDDNK{?Q>7W3CNqjJWmYTUn!Ji#cJdop zNsVNt6gCiC%>>fHz`)25%)rTjE(X3Q%Dl?SuLCj@fP+=%is$~V5bTCGik$tkFq_8AgEo&WX z&*l^`UCvm}0MVt%Gucywu?*8)N3? z`R)@q7-wuY2#DoiJifUvB7}?a+vdkf|2Y{gHb2f`WfqoZwOir*fdNQuaQ+OUK3Hx3 Vo$toPAH&Hg`H2BU7Rdu03jppzkcR*O delta 516 zcmZ4Ul<~q7M!wU$yj%=G@Mc#*#@_gid{@PoQkW($jFx81n#?G^)R3=+C51&2s34gs zg%t!>Gl7&dFfcL%GjKAXi3Q%Dl?RDP5!7TIhjLVWU{rdh$L$*YaMIP<`ghp&REU> zQK!j0xmMDE(Q9&osl?=Cl8S-~j(#o*nZ+)tIjJS73bqOclli5#3FrXbSEL0ZbU}pn zm1ogc{gA~jiArkG0`$h;tG^!tm@T>|e!xpSAjO>SP*@5gMESxU-%tv@7T(p>vXtBEJ zZ)TL;!NIs>^Db3SPNw?|lLO41H+$%_aWL|2_BYpMW3=5|Yun7sn6R1A@h2N&#^&Gd z6F3;BZ|(_*_R0S_8O=A_=dv;jOR?ImaQ?smq&7Hz22md@His9u TG4V%pGD?180Fg!VK(_(_8i$F4 diff --git a/api/services/prompt_service.py b/api/services/prompt_service.py index de8fe01..26b1f9c 100644 --- a/api/services/prompt_service.py +++ b/api/services/prompt_service.py @@ -141,11 +141,12 @@ class PromptService: with self.db_pool.get_connection() as conn: cursor = conn.cursor(dictionary=True) cursor.execute( - "SELECT description FROM contentStyle WHERE styleName = %s AND isDelete = 0", + "SELECT description FROM contentStyle WHERE styleName = %s", (style_name,) ) result = cursor.fetchone() if result: + logger.info(f"从数据库获取风格提示词: {style_name}") return result['description'] except Exception as e: logger.error(f"从数据库获取风格提示词失败: {e}")