升级 AppStore 缓存 Key 并在覆盖安装时强制重新登录。
统一账号作用域 Key 对齐 Android,新增缓存 schema 迁移清理旧数据,并同步更新相关模块与单元测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
22
suixinkanTests/AppStoreTestSupport.swift
Normal file
22
suixinkanTests/AppStoreTestSupport.swift
Normal file
@ -0,0 +1,22 @@
|
||||
//
|
||||
// AppStoreTestSupport.swift
|
||||
// suixinkanTests
|
||||
//
|
||||
|
||||
@testable import suixinkan
|
||||
|
||||
extension AppSessionStore {
|
||||
|
||||
/// 为需要账号作用域缓存的测试建立完整且稳定的账号上下文。
|
||||
func configureTestAccount(
|
||||
userId: String = "test-user",
|
||||
accountType: AppAccountType = .scenicUser,
|
||||
scenicId: Int? = nil
|
||||
) {
|
||||
self.userId = userId
|
||||
self.accountType = accountType
|
||||
if let scenicId {
|
||||
currentScenicId = scenicId
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user