yuanrf 6 months ago
parent
commit
c65e07e2df
1 changed files with 2 additions and 7 deletions
  1. 2 7
      OASystem/OASystem.Api/Controllers/GroupsController.cs

+ 2 - 7
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -14884,7 +14884,7 @@ And (UnitName != '' Or UnitName != null) {sqlWhere}");
 
             if (param.ContainsKey("methon"))
             {
-                methon = param["methon"]!.ToString();
+                methon = param["methon"]!.ToString().ToLower();
             }
 
             if (param.ContainsKey("header"))
@@ -14916,11 +14916,6 @@ And (UnitName != '' Or UnitName != null) {sqlWhere}");
             HttpClient client = new HttpClient();
             string responseString = string.Empty;
 
-            if (param.ContainsKey("isJson"))
-            {
-
-            }
-
             if (headValues != null)
             {
                 foreach (var item in headValues.Keys)
@@ -14953,7 +14948,7 @@ And (UnitName != '' Or UnitName != null) {sqlWhere}");
                 }
                 else
                 {
-                    jw.Msg = "methon error";
+                    responseString = "methon error";
                 }
 
                 jw = JsonView(true, "success", responseString);