feat: 增加会员服务与估价模版智能体

会员服务改为固定栏目,首页在线服务不再进入报告审核。估价模版智能体可多会话制作模版并下载,下载过程显示加载状态。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-23 13:36:19 +08:00
1 parent 55b5a87482
commit 2074a45681
63 files changed
+6428 -461

No files matched your search

+9
View File
@@ -2,6 +2,15 @@ import bcrypt
from fastapi import HTTPException, status
PASSWORD_RULE = "密码至少 8 位,且同时包含字母和数字"
MEMBER_PASSWORD_LIMIT = 10
DEFAULT_MEMBER_PASSWORD = "123456"
MEMBER_PASSWORD_RULE = "密码为 1 至 10 位,内容不限"
def validate_member_password(password: str) -> None:
text = password.strip() if isinstance(password, str) else ""
if not text or len(text) > MEMBER_PASSWORD_LIMIT:
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail=MEMBER_PASSWORD_RULE)
def validate_password(password: str) -> None: