提交内容:BIP提交接口调用

备注:BIP提交接口调用
提交人:邹江涛
This commit is contained in:
zoujiangtao 2024-12-19 16:47:30 +08:00
parent dc9e2d9895
commit 0ed7e50f38
1 changed files with 2 additions and 0 deletions

View File

@ -100,9 +100,11 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
String text = codeEdit.getText(); String text = codeEdit.getText();
Object obj = JSON.parse(text); Object obj = JSON.parse(text);
if (obj instanceof JSONObject) { if (obj instanceof JSONObject) {
logger.info("解析JSON字符串 → text{}\nJSON字符串解析为JSONObject", text);
JSONObject jsonObject = JSON.parseObject(text); JSONObject jsonObject = JSON.parseObject(text);
parseJson(jsonObject, 1, null); parseJson(jsonObject, 1, null);
} else if (obj instanceof JSONArray) { } else if (obj instanceof JSONArray) {
logger.info("解析JSON字符串 → text{}\nJSON字符串解析为JSONArray", text);
JSONArray jsonArray = JSON.parseArray(text); JSONArray jsonArray = JSON.parseArray(text);
parseJson(jsonArray, 1, null); parseJson(jsonArray, 1, null);
} }