feat(subscription): default pay channel by country

This commit is contained in:
2026-06-30 16:49:47 +08:00
parent 9cff16e2d9
commit e254c93078
9 changed files with 63 additions and 5 deletions
@@ -13,6 +13,8 @@ function makeUser(overrides: Partial<UserView> = {}): UserView {
id: "user-1",
username: "Elio Fan",
email: "user@example.com",
country: "Hong Kong",
countryCode: "HK",
avatarUrl: "https://example.com/avatar.png",
intimacy: 42,
dolBalance: 7,
+4
View File
@@ -57,6 +57,8 @@ export function toView(u: {
id: string;
username: string;
email?: string;
country?: string;
countryCode?: string;
avatarUrl?: string;
intimacy?: number;
dolBalance?: number;
@@ -74,6 +76,8 @@ export function toView(u: {
id: u.id,
username: u.username,
email: u.email ?? "",
country: u.country ?? "",
countryCode: u.countryCode ?? "",
avatarUrl: u.avatarUrl ?? "",
intimacy: u.intimacy ?? 0,
dolBalance: u.dolBalance ?? creditBalance,