Commit 11caa975 by tyfanchz

Modify Feign decoder for more compatibility

1 parent 56e90cc7
...@@ -135,8 +135,7 @@ public class FeignDecoderForR extends FeignDecoder<R> { ...@@ -135,8 +135,7 @@ public class FeignDecoderForR extends FeignDecoder<R> {
private static String extractDataJson(R resp) { private static String extractDataJson(R resp) {
Object data = resp.getData(); Object data = resp.getData();
String dataJson = (data instanceof String) String dataJson = JSON.toJSONString(data);
? (String) data : JSON.toJSONString(data);
return dataJson; return dataJson;
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!