feat(subscription): load vip and credit plans from api

This commit is contained in:
2026-06-26 15:09:27 +08:00
parent abf6d5ae88
commit 49b67064f7
15 changed files with 748 additions and 50 deletions
+6 -1
View File
@@ -25,7 +25,12 @@ function toErrorMessage(error: unknown): string {
}
function defaultAutoRenewForPlan(planId: string): boolean {
return !planId.includes("lifetime") && !planId.startsWith("dol_");
return (
!planId.includes("lifetime") &&
!planId.startsWith("dol_") &&
!planId.startsWith("points_") &&
!planId.startsWith("credit_")
);
}
function getDefaultPlanId(plans: readonly PaymentPlan[]): string {