diff --git a/DysonNetwork.Sphere/Wallet/SubscriptionService.cs b/DysonNetwork.Sphere/Wallet/SubscriptionService.cs index 4339d86..6e07ce4 100644 --- a/DysonNetwork.Sphere/Wallet/SubscriptionService.cs +++ b/DysonNetwork.Sphere/Wallet/SubscriptionService.cs @@ -100,11 +100,11 @@ public class SubscriptionService( switch (provider) { case "afdian": - var afdianPlans = cfgSection.GetValue>("Afdian"); + // Get the Afdian section first, then bind it to a dictionary + var afdianPlans = cfgSection.GetSection("Afdian").Get>(); logger.LogInformation("Afdian plans configuration: {Plans}", JsonSerializer.Serialize(afdianPlans)); if (afdianPlans != null && afdianPlans.TryGetValue(subscriptionIdentifier, out var planName)) subscriptionIdentifier = planName; - currency = "cny"; break; }