wangxinhui
2025-01-10 4bc0e18b94a2bf17c1b7277910d63ef82fbe616a
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/PDAController.cs
@@ -93,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);
            }
        //}
        }
    }
}