diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/controller/OcrSimulatorController.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/controller/OcrSimulatorController.java index 67f070f..85a436b 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/controller/OcrSimulatorController.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/ocr/controller/OcrSimulatorController.java @@ -91,10 +91,9 @@ public class OcrSimulatorController{ ocrIdentifyDetailService.saveBatch(ocrIdentifyDetailList); //返回前端的json - JSONObject responseObject=new JSONObject(); - responseObject.put("ocrTime",ocrTimeSum); - responseObject.put("nluTime",nluTimeSum); - responseObject.put("detailList",ocrIdentifyDetailList); + responseBody.put("ocrTime",ocrTimeSum); + responseBody.put("nluTime",nluTimeSum); + responseBody.put("detailList",ocrIdentifyDetailList); return Result.OK(responseBody); }