fix: route payment pushes to orders and prevent refresh crash
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user