模块化 AppStore 并完善素材管理与个人空间设置。

将会话、权限、位置、收款与排队存储拆分为独立模块,同步更新各 ViewModel 与单元测试,并补充素材管理 UI 与个人空间设置交互。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-13 11:01:08 +08:00
parent ceca780ab3
commit 005349f8e6
128 changed files with 2953 additions and 1123 deletions

View File

@ -40,7 +40,7 @@ final class MainTabScanHandler {
case "check_in":
await performCheckIn(scanResult: scanResult)
case "order_verify":
if AppStore.shared.currentAppRole == .storeAdmin {
if AppStore.shared.session.currentAppRole == .storeAdmin {
await performStoreVerify(parsed: parsed)
} else {
await performPhotographerVerify(jsonBody: parsed.rawJSON)
@ -92,7 +92,7 @@ final class MainTabScanHandler {
onShowMessage?("请扫描正确的二维码")
return
}
json["scenic_id"] = String(AppStore.shared.currentScenicId)
json["scenic_id"] = String(AppStore.shared.session.currentScenicId)
guard let body = serializeJSON(json) else { return }
do {
let response = try await api.orderCheckIn(jsonBody: body)
@ -116,7 +116,7 @@ final class MainTabScanHandler {
onShowMessage?("请扫描正确的核销码")
return
}
let storeId = AppStore.shared.currentStoreId
let storeId = AppStore.shared.session.currentStoreId
guard storeId > 0 else {
onShowMessage?("店铺信息异常,请先选择店铺")
return