|
@@ -106,13 +106,13 @@ public class OfflineController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (dto.getMapping().toUpperCase(Locale.ROOT).equals(RequestMethod.POST)) {
|
|
|
+ if (dto.getMapping().toUpperCase(Locale.ROOT).equals(RequestMethod.POST.name())) {
|
|
|
String result2 = HttpRequest.post(localNetworkUrl + dto.getAction())
|
|
|
.body(JSONObject.parseObject(dto.getParams()).toJSONString())
|
|
|
.header("Content-Type", "application/json")
|
|
|
.execute().body();
|
|
|
return JSONObject.parseObject(result2);
|
|
|
- } else if (dto.getMapping().toUpperCase(Locale.ROOT).equals(RequestMethod.GET)) {
|
|
|
+ } else if (dto.getMapping().toUpperCase(Locale.ROOT).equals(RequestMethod.GET.name())) {
|
|
|
String result2 = HttpRequest.get(localNetworkUrl + dto.getAction())
|
|
|
.execute().body();
|
|
|
return JSONObject.parseObject(result2);
|