diff --git a/api/services/__pycache__/prompt_service.cpython-312.pyc b/api/services/__pycache__/prompt_service.cpython-312.pyc index 10051f9..9081add 100644 Binary files a/api/services/__pycache__/prompt_service.cpython-312.pyc and b/api/services/__pycache__/prompt_service.cpython-312.pyc differ 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}")