From 44a7c47a724c154c54e256727c75e79d31fd42e2 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期四, 05 六月 2025 21:42:40 +0800
Subject: [PATCH] 优化代码格式,添加到货标识和查询条件

---
 StandardPda/MESApplication/Controllers/Base/LoginController.cs |   29 ++++++++++++-----------------
 1 files changed, 12 insertions(+), 17 deletions(-)

diff --git a/StandardPda/MESApplication/Controllers/Base/LoginController.cs b/StandardPda/MESApplication/Controllers/Base/LoginController.cs
index 04794f5..15cf776 100644
--- a/StandardPda/MESApplication/Controllers/Base/LoginController.cs
+++ b/StandardPda/MESApplication/Controllers/Base/LoginController.cs
@@ -1,14 +1,10 @@
-锘縰sing Masuit.Tools;
-using Masuit.Tools.Database;
+锘縰sing System.Dynamic;
 using MES.Service.Dto.@base;
 using MES.Service.service;
 using MES.Service.util;
 using Microsoft.AspNetCore.Mvc;
 using Newtonsoft.Json;
 using Newtonsoft.Json.Linq;
-using System.Dynamic;
-using static MES.Service.service.QC.LljService;
-using Newtonsoft.Json;
 
 namespace MESApplication.Controllers.Base;
 
@@ -110,37 +106,30 @@
             return ResponseResult.ResponseError(ex);
         }
     }
-    public class Root
-    { 
-        public string version { get; set; }
-      
-        public string apkUrl { get; set; }
-    }
 
     /// <summary>
-    ///    鑾峰彇App鏈�鏂扮増鏈俊鎭�
+    ///     鑾峰彇App鏈�鏂扮増鏈俊鎭�
     /// </summary>
     /// <param name="data"></param>
     /// <returns></returns>
     [HttpPost("getAppUpgradeInfo")]
     public async Task<ResponseResult> getAppUpgradeInfo()
     {
-        
         try
-        {  
+        {
             HttpClient client = new();
-    var requestUrl = $"http://192.168.1.104:8081/UpgradeInformation.json";
+            var requestUrl =
+                "http://192.168.1.104:8081/UpgradeInformation.json";
             var response = await client.GetAsync(requestUrl);
             response.EnsureSuccessStatusCode(); // 妫�鏌TTP鐘舵�佺爜
             var responseContent = await response.Content.ReadAsStringAsync();
-            var a= JsonConvert.DeserializeObject<Root>(responseContent);
+            var a = JsonConvert.DeserializeObject<Root>(responseContent);
             return new ResponseResult
             {
                 status = 0,
                 message = "OK",
                 data = a
             };
-
         }
         catch (Exception ex)
         {
@@ -148,4 +137,10 @@
         }
     }
 
+    public class Root
+    {
+        public string version { get; set; }
+
+        public string apkUrl { get; set; }
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3