修改数据格式
This commit is contained in:
@@ -302,7 +302,7 @@ public class MgDocumentController {
|
|||||||
try {
|
try {
|
||||||
oldUrl = this.encodeUrlParam(oldUrl);
|
oldUrl = this.encodeUrlParam(oldUrl);
|
||||||
resourcesUrl = this.encodeUrlParam(resourcesUrl);
|
resourcesUrl = this.encodeUrlParam(resourcesUrl);
|
||||||
String resourcesStr = HttpRequest.get(resourcesUrl).timeout(3000).execute().body();
|
String resourcesStr = HttpRequest.get(resourcesUrl).header("Accept", "application/json, text/javascript, */*; q=0.01").timeout(3000).execute().body();
|
||||||
boolean isLocation = this.addSwaggerLocationList(resourcesStr, rewriteDomainUrl, resourcesUrl, oldUrl, openVisit);
|
boolean isLocation = this.addSwaggerLocationList(resourcesStr, rewriteDomainUrl, resourcesUrl, oldUrl, openVisit);
|
||||||
if (!isLocation) {
|
if (!isLocation) {
|
||||||
List<SwaggerResource> resourceList = JSON.parseArray(resourcesStr, SwaggerResource.class);
|
List<SwaggerResource> resourceList = JSON.parseArray(resourcesStr, SwaggerResource.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user