feat: rm request args
This commit is contained in:
parent
1450938d17
commit
06602f98fa
@ -47,8 +47,7 @@ public class OCRController {
|
||||
@PostMapping(value = "/OCRinterface", consumes = "multipart/form-data")
|
||||
@Operation(summary = "OCR识别")
|
||||
@PreAuthorize("@ss.hasPermission('system:forward:OCRinterface')")
|
||||
public CommonResult<OCRReqVO> OCRinterface(@RequestParam("file") MultipartFile file,
|
||||
@RequestParam("mag") String mag) {
|
||||
public CommonResult<OCRReqVO> OCRinterface(@RequestParam("file") MultipartFile file) {
|
||||
try {
|
||||
String imageurl = "";
|
||||
// 校验文件非空
|
||||
@ -66,7 +65,7 @@ public class OCRController {
|
||||
if (getimage.containsKey(OriginalFilename)) {
|
||||
imageurl = "data:" + getimage.get(OriginalFilename) + ";base64," + imageurl;
|
||||
}
|
||||
Map<String, Object> getmsg = getmsg(mag, imageurl);
|
||||
Map<String, Object> getmsg = getmsg("识别图像内容,根据内容用makedown格式整理输出。", imageurl);
|
||||
if (getmsg.get("success").equals("1")) {
|
||||
OCRReqVO ocrReqVO= new OCRReqVO();
|
||||
ocrReqVO.setMarkdown(getmsg.get("msg"));
|
||||
|
Loading…
Reference in New Issue
Block a user