wuxw лет назад: 2
Родитель
Сommit
42d35284db

+ 2 - 2
service-common/src/main/java/com/java110/common/cmd/system/ListSystemInfoCmd.java

@@ -115,9 +115,9 @@ public class ListSystemInfoCmd extends Cmd {
             ResponseEntity<String> tokenRes = outRestTemplate.exchange(pluginUrl, HttpMethod.POST, httpEntity, String.class);
 
             String body = tokenRes.getBody();
-            JSONArray paramOut = JSONArray.parseArray(body);
+            JSONObject paramOut = JSONObject.parseObject(body);
 
-            systemInfoDtos.get(0).setPlugins(paramOut);
+            systemInfoDtos.get(0).setPlugins(paramOut.getJSONArray("data"));
         } catch (Exception e) {
             e.printStackTrace();
         }