|
@@ -11,6 +11,7 @@ import org.springframework.http.ResponseEntity;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -33,7 +34,9 @@ public class FileCallBackController{
|
|
* 获取文件元数据
|
|
* 获取文件元数据
|
|
*/
|
|
*/
|
|
@GetMapping("info")
|
|
@GetMapping("info")
|
|
- public ResponseEntity<Object> getFileInfo(String _w_userid, String _w_filepath, String _w_filetype){
|
|
|
|
|
|
+ public ResponseEntity<Object> getFileInfo(String _w_userid, String _w_filepath, String _w_filetype, HttpServletRequest request){
|
|
|
|
+ String fileId = request.getHeader("x-weboffice-file-id");
|
|
|
|
+ log.info("获取文件id:{}",fileId);
|
|
log.info("获取文件元数据userId:{},path:{},type:{}",_w_userid,_w_filepath,_w_filetype);
|
|
log.info("获取文件元数据userId:{},path:{},type:{}",_w_userid,_w_filepath,_w_filetype);
|
|
try {
|
|
try {
|
|
Map<String,Object> map = wpsFileService.getFileInfo(_w_userid,_w_filepath,_w_filetype);
|
|
Map<String,Object> map = wpsFileService.getFileInfo(_w_userid,_w_filepath,_w_filetype);
|