feat: 测试接入wps
parent
7509326bdc
commit
aeed25f331
|
|
@ -79,13 +79,12 @@ public class H5OpenController {
|
|||
@ApiOperation("wps回调上传第三步")
|
||||
@PostMapping(value = "/v3/3rd/files/{file_id}/upload/complete")
|
||||
public String getWpsUpLoadThree(@PathVariable("file_id") String file_id, @RequestBody Map<String, Object> map) {
|
||||
map.put("id", file_id);
|
||||
String jsonString = JSON.toJSONString(map);
|
||||
log.info("wps回调上传第三步:{}, map: {}", file_id, jsonString);
|
||||
return jsonString;
|
||||
String msg = accountMapper.getWps(7);
|
||||
log.info("wps回调上传第三步:{}, map: {}", file_id, msg);
|
||||
return msg;
|
||||
}
|
||||
|
||||
@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 {
|
||||
// 获取文件的二进制流
|
||||
try (InputStream inputStream = request.getInputStream()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue