From bcc37c32e2f0b884656ef5e2999f91f5e48b3343 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 29 四月 2025 16:24:27 +0800
Subject: [PATCH] 1

---
 CLOUDWEB/WebService1.asmx.cs |   24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/CLOUDWEB/WebService1.asmx.cs b/CLOUDWEB/WebService1.asmx.cs
index a010b03..63d6e5b 100644
--- a/CLOUDWEB/WebService1.asmx.cs
+++ b/CLOUDWEB/WebService1.asmx.cs
@@ -52842,7 +52842,7 @@
                 string HProduceDate = "";//鐢熶骇鏃ユ湡
                 string HExpiryDate = "";//淇濊川鏈熻嚦
            
-                if (str.Length == 8 && HISKFPERIOD == "1")
+                if (str.Length == 9 && HISKFPERIOD == "1")
                 {
                     if (!string.IsNullOrWhiteSpace(str[7]))
                     {
@@ -52858,14 +52858,20 @@
                     }
 
                     HProduceDate = HDate.ToString();
-                  
-                    //if (!DateTime.TryParse(str[8], out HDate))
-                    //{
-                    //    sErrMsg = "鏉$爜瑙f瀽澶辫触," + str[8] + ",淇濊川鏈熸牸寮忎笉姝g‘!";
-                    //    return false;
-                    //}
-                    //HExpiryDate = HDate.ToString();
-                    //HISKFPERIOD = 1;
+
+                    if (!string.IsNullOrWhiteSpace(str[8]))
+                    {
+                        try
+                        {
+                            HDate = DateTime.ParseExact(str[8], "yyyyMMdd", CultureInfo.InvariantCulture);
+                        }
+                        catch
+                        {
+                            sErrMsg = "鏉$爜瑙f瀽澶辫触," + str[8] + ",鐢熶骇鏃ユ湡鏍煎紡涓嶆纭�!";
+                            return false;
+                        }
+                    }
+                    HExpiryDate = HDate.ToString();
                 }
 
                 string HSupIDs = "0";

--
Gitblit v1.9.1