From c338512c16c55a7bfd4ad7c5ed72ddc4518b2ae0 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 23 Jun 2025 02:31:22 +0800 Subject: [PATCH] :bug: Fix afdian webhook --- DysonNetwork.Sphere/Wallet/SubscriptionService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }