feat: 测试接入wps

v0.0.1-final^2^2
zhanglei 2026-07-20 09:24:26 +08:00
parent 7509326bdc
commit aeed25f331
1 changed files with 4 additions and 5 deletions

View File

@ -79,13 +79,12 @@ public class H5OpenController {
@ApiOperation("wps回调上传第三步") @ApiOperation("wps回调上传第三步")
@PostMapping(value = "/v3/3rd/files/{file_id}/upload/complete") @PostMapping(value = "/v3/3rd/files/{file_id}/upload/complete")
public String getWpsUpLoadThree(@PathVariable("file_id") String file_id, @RequestBody Map<String, Object> map) { public String getWpsUpLoadThree(@PathVariable("file_id") String file_id, @RequestBody Map<String, Object> map) {
map.put("id", file_id); String msg = accountMapper.getWps(7);
String jsonString = JSON.toJSONString(map); log.info("wps回调上传第三步{}, map: {}", file_id, msg);
log.info("wps回调上传第三步{}, map: {}", file_id, jsonString); return msg;
return jsonString;
} }
@PostMapping(value = "/upload/{file_id}", consumes = "application/octet-stream") @PutMapping(value = "/upload/{file_id}", consumes = "application/octet-stream")
public String uploadFile(@PathVariable("file_id") String file_id, HttpServletRequest request) throws IOException { public String uploadFile(@PathVariable("file_id") String file_id, HttpServletRequest request) throws IOException {
// 获取文件的二进制流 // 获取文件的二进制流
try (InputStream inputStream = request.getInputStream()) { try (InputStream inputStream = request.getInputStream()) {