修复账号切换后「我的」页当前账号展示错误,并统一举报摄影师首页 URI。

切换账号时以用户选中账号为准写入展示标题与业务作用域,避免沿用旧门店名称;同时将首页举报摄影师入口 URI 对齐为 report_photographer。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-01 17:21:04 +08:00
parent fcb86d43f5
commit 5ab9b1b324
23 changed files with 419 additions and 92 deletions

View File

@ -269,20 +269,20 @@ final class HomeCommonMenuStoreTests: XCTestCase {
XCTAssertEqual(uris, ["wallet", "message_center"])
}
/// photographer_report Android menuList
/// report_photographer Android menuList
func testPhotographerReportIsWhitelistedAndCanBeAddedToCommon() {
XCTAssertTrue(HomeCommonMenuStore.androidHomeMenuURIs.contains("photographer_report"))
XCTAssertTrue(HomeCommonMenuStore.androidHomeMenuURIs.contains("report_photographer"))
let store = HomeCommonMenuStore(defaults: makeIsolatedDefaults())
let uris = store.add(
"photographer_report",
"report_photographer",
current: ["location_report"],
topLevelPermissionURIs: ["location_report", "photographer_report"],
topLevelPermissionURIs: ["location_report", "report_photographer"],
roleCode: "photographer",
accountScope: "scenic_user_photographer_report"
accountScope: "scenic_user_report_photographer"
)
XCTAssertEqual(uris, ["location_report", "photographer_report"])
XCTAssertEqual(uris, ["location_report", "report_photographer"])
}
/// 4