Explorar el Código

转发内网请求

xiewj hace 2 años
padre
commit
8b909ee08f

+ 3 - 2
sxz-core/src/main/java/com/fdkk/sxz/webApi/controller/OfflineController.java

@@ -92,6 +92,7 @@ public class OfflineController {
             String res = HttpRequest.post(localNetworkUrl + dto.getAction())
                     .header("token", request.getHeader("token"))
                     .execute().body();
+            OfflineController.log.info("checkToken返回:{}", res);
             JSONObject resObject = JSONObject.parseObject(res);
             if (null != resObject) {
                 if (resObject.containsKey("code")) {
@@ -103,9 +104,9 @@ public class OfflineController {
             }
         }
         String result2 = HttpRequest.post(localNetworkUrl + dto.getAction())
-                .body(dto.getParams())
+                .body(JSONObject.parseObject(dto.getParams()).toJSONString())
                 .execute().body();
-        return Result.success(result2);
+        return result2;
 
     }
 }