refactor(payment): remove vip status flow

This commit is contained in:
2026-06-26 18:48:22 +08:00
parent e9fc001a6f
commit b6f18a1ef3
9 changed files with 46 additions and 176 deletions
-4
View File
@@ -28,13 +28,11 @@ export interface PaymentContextState {
currentOrderId: string | null;
payParams: Record<string, unknown> | null;
orderStatus: MachineContext["orderStatus"];
vipStatus: MachineContext["vipStatus"];
errorMessage: string | null;
launchNonce: number;
isLoadingPlans: boolean;
isCreatingOrder: boolean;
isPollingOrder: boolean;
isCheckingVipStatus: boolean;
isPaid: boolean;
}
@@ -59,14 +57,12 @@ export function PaymentProvider({ children }: PaymentProviderProps) {
currentOrderId: state.context.currentOrderId,
payParams: state.context.payParams,
orderStatus: state.context.orderStatus,
vipStatus: state.context.vipStatus,
errorMessage: state.context.errorMessage,
launchNonce: state.context.launchNonce,
isLoadingPlans: state.matches("loadingPlans"),
isCreatingOrder: state.matches("creatingOrder"),
isPollingOrder:
state.matches("pollingOrder") || state.matches("waitingForPayment"),
isCheckingVipStatus: state.matches("checkingVipStatus"),
isPaid: state.matches("paid"),
}),
[state],