feat: 完成三角色工作台及金租对公Skills全流程演示

This commit is contained in:
NathanAlex7
2026-09-15 10:32:24 +08:00
parent 5f0b1f9409
commit 47ec090345
58 changed files with 2534 additions and 609 deletions
+2
View File
@@ -46,6 +46,8 @@ def execute(connection, sql, project_id, exact_decimals=False):
max_rows = max(1, min(int(connection.get("max_rows", 1000)), 10000))
if kind == "SQLite":
root = os.getenv("XINGBANG_SQLITE_ROOT")
if not root and connection.get("data_domain") == "demo":
root = str(Path(__file__).resolve().parents[1] / "xingbang_data")
if not root: raise ValueError("服务器未配置 XINGBANG_SQLITE_ROOT")
file = Path(connection.get("database", "")).resolve()
if not file.is_relative_to(Path(root).resolve()) or not file.is_file():