From a7ceaaa38a4394b82501ca60230e97d25a6871e3 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期六, 18 一月 2025 17:30:33 +0800
Subject: [PATCH] 1

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/PDAController.cs |   33 ++++++++++++++++++---------------
 1 files changed, 18 insertions(+), 15 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/PDAController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/PDAController.cs"
index ad7c944..33d6641 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/PDAController.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/PDAController.cs"
@@ -14,6 +14,9 @@
 
 namespace WIDESEA_WMSServer.Controllers
 {
+    /// <summary>
+    /// PDA
+    /// </summary>
     [Route("api/PDA")]
     [Authorize, ApiController]
     public class PDAController : Controller
@@ -90,21 +93,21 @@
             }
         }
 
-        //[HttpPost, HttpGet, Route("GetPDAVersion"), AllowAnonymous]
-        //public WebResponseContent GetPDAVersion(string version)
-        //{
-        //    try
-        //    {
-        //        string versionP = ConfigUtil.GetConfiguration["PDAVersion"];
-        //        if (Convert.ToInt32(versionP) > Convert.ToInt32(version))
-        //            return WebResponseContent.Instance.OK(data: true);
-        //        else return WebResponseContent.Instance.OK(data: false);
-        //    }
-        //    catch (Exception ex)
-        //    {
-        //        return WebResponseContent.Instance.Error(ex.Message);
-        //    }
+        [HttpPost, HttpGet, Route("GetPDAVersion"), AllowAnonymous]
+        public WebResponseContent GetPDAVersion(string version)
+        {
+            try
+            {
+                string versionP = AppSettings.Get("PDAVersion");
+                if (Convert.ToInt32(versionP) > Convert.ToInt32(version))
+                    return WebResponseContent.Instance.OK(data: true);
+                else return WebResponseContent.Instance.OK(data: false);
+            }
+            catch (Exception ex)
+            {
+                return WebResponseContent.Instance.Error(ex.Message);
+            }
 
-        //}
+        }
     }
 }

--
Gitblit v1.9.3