| | |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.Synchronized; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "文件", name = "file", dataType = "MultipartFile", required = true) |
| | | }) |
| | | public R<String> pic(@RequestParam("file") MultipartFile file,@RequestParam String longitude,@RequestParam String address, |
| | | @RequestParam String latitude) { |
| | | @Synchronized |
| | | public R<String> pic(@RequestParam("file") MultipartFile file,String longitude,String address, |
| | | String latitude) { |
| | | // Result<String> address = GaoDeMapUtil.getAddress(longitude, latitude); |
| | | |
| | | // return R.fail(); |
| | | |
| | | // 获取当前时间 |
| | | |
| | |
| | | |
| | | |
| | | String url = tencentCosUtil.upLoadFile(watermarkFile); |
| | | // String url = tencentCosUtil.upLoadFile(file); |
| | | log.error("==========="+LocalDateTime.now()); |
| | | return R.ok(url); |
| | | |