From cb55bfc387d604618fe37b93b89b60c7e83d5846 Mon Sep 17 00:00:00 2001
From: chenzx <m15572880737@163.com>
Date: 星期三, 18 十二月 2024 19:18:22 +0800
Subject: [PATCH] czx20241218接口更新

---
 GasolineBlend/Controllers/SubsidyDataController.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/GasolineBlend/Controllers/SubsidyDataController.cs b/GasolineBlend/Controllers/SubsidyDataController.cs
index 9b08b2b..1a3d229 100644
--- a/GasolineBlend/Controllers/SubsidyDataController.cs
+++ b/GasolineBlend/Controllers/SubsidyDataController.cs
@@ -192,9 +192,12 @@
 
         private static Dictionary<string, int> ParseData(string data)
         {
+            if (!string.IsNullOrEmpty(data) && data.EndsWith(":"))
+            {
+                data = data.Substring(0, data.Length - 1);
+            }
             var dataDict = new Dictionary<string, int>();
             var entries = data.Split(',');
-
             foreach (var entry in entries)
             {
                 var parts = entry.Split('锛�');

--
Gitblit v1.8.0