Commit 118c52c8 by 陶光胜

图片base64上传

parent 7f84e58d
...@@ -156,6 +156,14 @@ public class UploadImgController { ...@@ -156,6 +156,14 @@ public class UploadImgController {
return RestResponse.success(uploadResult.getDownloadUrl()); return RestResponse.success(uploadResult.getDownloadUrl());
} }
@RequestMapping("/receiveData")
@HeaderSignIgnore
@IgnoreLogin
public String receiveData(String message, String sign){
logger.info("message:{}, sign:{}", message,sign);
return "success";
}
public static File multipartFileToFile(MultipartFile file) throws Exception { public static File multipartFileToFile(MultipartFile file) throws Exception {
File toFile = null; File toFile = null;
if ("".equals(file) || file.getSize() <= 0) { if ("".equals(file) || file.getSize() <= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment