feat: 套装方案对比与导出功能 #32

Merged
hera merged 37 commits from feat/kit-comparison-export into main 2026-04-14 13:32:34 +00:00
Showing only changes of commit c2369e9bee - Show all commits

View File

@@ -682,7 +682,7 @@ def revoke_business(user_id: int, body: dict = None, user=Depends(require_role("
conn = get_db()
conn.execute("UPDATE users SET business_verified = 0 WHERE id = ?", (user_id,))
reason = (body or {}).get("reason", "").strip()
target = conn.execute("SELECT role FROM users WHERE id = ?", (user_id,)).fetchone()
target = conn.execute("SELECT role, display_name, username FROM users WHERE id = ?", (user_id,)).fetchone()
if target:
msg = "你的商业用户资格已被取消。"
if reason: