From 31f4e2869d9bba80c7e35bb6ba9b9c77db107ee9 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 25 Jun 2025 11:23:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20sql=E6=9F=A5=E8=AF=A2=E6=9C=89=E9=A3=8E?= =?UTF-8?q?=E9=99=A9=E6=8F=90=E7=A4=BA=E6=9B=B4=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/bi/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/bi/services.py b/apps/bi/services.py index 29cc91e4..e9fad319 100644 --- a/apps/bi/services.py +++ b/apps/bi/services.py @@ -14,7 +14,7 @@ def check_sql_safe(sql: str): sql_upper = sql.upper() for kw in forbidden_keywords: if kw in sql_upper: - raise ParseError('sql查询有风险') + raise ParseError(f'sql查询有风险-{kw}') return sql def format_json_with_placeholders(json_str, **kwargs):