Commit e3729e57 by huluobin

upload

parent aea2b2b0
......@@ -101,7 +101,7 @@ public class XcxController {
@ApiOperation(value = "base64图片上传")
@PostMapping("/customer/xcx/no_base64Upload")
public JsonResult<String> base64Upload(String base64) throws Exception {
public JsonResult<String> base64Upload(@RequestBody String base64) throws Exception {
log.info("图片上传");
MultipartFile multipartFile = BASE64DecodedMultipartFile.base64ToMultipart(base64);
String imgUrl = ImageUtil.saveImage(gogirlProperties.getPicturePath(), multipartFile);
......
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