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

+7 -14
View File
@@ -17,7 +17,7 @@ _PLACEHOLDERS = (
"政策法规整理中",
"数据看板整理中",
"估价师、机构与公众入口即将开放",
"报告查询、报告审核与投诉举报入口即将开放",
"报告查询与投诉举报入口即将开放",
"协会荣誉与资质整理中",
"会员单位名录整理中",
"办公地址整理中",
@@ -560,8 +560,7 @@ def _clear_entries(client, headers) -> None:
json={
"links": [
{"key": "reportQuery", "label": "报告查询", "url": "/reports/query", "visible": False, "sortOrder": 0},
{"key": "reportReview", "label": "报告审核", "url": "/reports/review", "visible": False, "sortOrder": 1},
{"key": "complaint", "label": "投诉举报", "url": "", "visible": False, "sortOrder": 2},
{"key": "complaint", "label": "投诉举报", "url": "", "visible": False, "sortOrder": 1},
]
},
)
@@ -582,7 +581,7 @@ def test_public_home_exposes_audience_hot_links_and_shortcut_menu(client):
empty = client.get("/api/site/home")
assert empty.status_code == 200, empty.text
assert "估价师、机构与公众入口即将开放" in empty.text
assert "报告查询、报告审核与投诉举报入口即将开放" in empty.text
assert "报告查询与投诉举报入口即将开放" in empty.text
assert empty.json()["shortcutMenu"]["items"] == [
{"label": "首页", "url": "/", "navigation": "sameWindow"}
]
@@ -637,19 +636,12 @@ def test_public_home_exposes_audience_hot_links_and_shortcut_menu(client):
"visible": True,
"sortOrder": 1,
},
{
"key": "reportReview",
"label": "报告审核",
"url": "https://example.com/review",
"visible": False,
"sortOrder": 2,
},
{
"key": "complaint",
"label": "投诉举报",
"url": "",
"visible": False,
"sortOrder": 3,
"sortOrder": 2,
},
]
},
@@ -677,7 +669,7 @@ def test_public_home_exposes_audience_hot_links_and_shortcut_menu(client):
body = home.json()
text = home.text
assert "估价师、机构与公众入口即将开放" not in text
assert "报告查询、报告审核与投诉举报入口即将开放" not in text
assert "报告查询与投诉举报入口即将开放" not in text
assert "不展示的机构入口" not in text
assert "真伪" not in text
assert "authenticity" not in text
@@ -770,7 +762,7 @@ def test_public_home_lists_members_without_links_and_keeps_empty_honors(client):
headers=headers,
json={
"intervalSeconds": 5,
"items": [{"imageFileId": honor_id, "sortOrder": 1}],
"items": [{"imageFileId": honor_id, "caption": "示范表彰", "sortOrder": 1}],
},
)
assert shown.status_code == 200, shown.text
@@ -778,6 +770,7 @@ def test_public_home_lists_members_without_links_and_keeps_empty_honors(client):
assert with_honor.status_code == 200, with_honor.text
assert "协会荣誉与资质整理中" not in with_honor.text
honor_items = with_honor.json()["honors"]["items"]
assert honor_items[0]["caption"] == "示范表彰"
assert with_honor.json()["honors"]["intervalSeconds"] == 5
downloaded = httpx.get(honor_items[0]["imageUrl"], timeout=5.0, follow_redirects=True)
assert downloaded.status_code == 200