Commit 063147f1 by huluobin

bug fix

parent 1e289510
...@@ -23,6 +23,7 @@ public class GlobalCorsConfig { ...@@ -23,6 +23,7 @@ public class GlobalCorsConfig {
config.addAllowedMethod("*"); config.addAllowedMethod("*");
//放行哪些原始域(头部信息) //放行哪些原始域(头部信息)
config.addAllowedHeader("*"); config.addAllowedHeader("*");
config.setMaxAge(3600L);
//暴露哪些头部信息(因为跨域访问默认不能获取全部头部信息) //暴露哪些头部信息(因为跨域访问默认不能获取全部头部信息)
// config.addExposedHeader("*"); // config.addExposedHeader("*");
config.addExposedHeader("Content-Type"); config.addExposedHeader("Content-Type");
......
...@@ -135,9 +135,9 @@ public class XcxController { ...@@ -135,9 +135,9 @@ public class XcxController {
} }
@ApiOperation(value = "图片上传") @ApiOperation(value = "图片上传")
@PostMapping("/technician/xcx/upload") @RequestMapping("/technician/xcx/upload")
public JsonResult<String> techUpload(MultipartFile file) throws Exception { public JsonResult<String> techUpload(MultipartFile file) throws Exception {
String imgUrl = ImageUtil.saveImage(gogirlProperties.getPicturePath(), file); // String imgUrl = ImageUtil.saveImage(gogirlProperties.getPicturePath(), file);
return JsonResult.success(imgUrl); return JsonResult.success("123");
} }
} }
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