diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/api/PayBillApiSavePlugin.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/api/PayBillApiSavePlugin.java index 326519d..0ca45a9 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/api/PayBillApiSavePlugin.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/api/PayBillApiSavePlugin.java @@ -142,7 +142,9 @@ public class PayBillApiSavePlugin implements ApiSavePlugin, ApiSerializerPlugin } else { logger.info("进入else"); //其他类型的出参序列化 - return null; + String responseStr = new ObjectMapper().writeValueAsString(response); + JSONObject jsonObject = JSON.parseObject(responseStr); + return new SerializerResult(MediaType.TEXT_PLAIN, jsonObject.toJSONString()); } } catch (JsonProcessingException e) { logger.info("catch");