fix: route payment pushes to orders and prevent refresh crash

This commit is contained in:
2026-09-08 09:59:51 +08:00
parent 10249776ad
commit c4b0e7798b
10 changed files with 333 additions and 47 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ import Foundation
/// 推送点击后可到达的业务页面。
enum PushDestination: Sendable, Equatable {
case paymentRecord
case orders
case paymentDetails
case messageCenter
case aiRetouchTaskList
@@ -36,8 +36,8 @@ struct PushPayload: Sendable, Equatable {
/// 仅根据后端业务消息类型解析目标页面。
nonisolated var destination: PushDestination {
switch type {
case "1":
return .paymentRecord
case "1", "5":
return .orders
case "6":
return .paymentDetails
case "14":