金山WPS在线编辑

This commit is contained in:
zhangqinbin
2023-11-02 13:53:05 +08:00
parent 695141be84
commit 0c9ec45100

View File

@ -125,6 +125,32 @@ public class WpsController {
String str = this.wpsService.getKSWpsUrl(in); String str = this.wpsService.getKSWpsUrl(in);
return BaseResponse.success(str); return BaseResponse.success(str);
} }
/**
* (金山)获得编辑或查看链接
*
* @return
*/
@ApiOperation("(金山)获得编辑或查看链接")
@GetMapping("/kingSoft/getWpsUrlByGet")
public void getWpsUrlByGet(HttpServletRequest request, HttpServletResponse response,
@RequestParam("fileId") String fileId,
@RequestParam("fileName") String fileName,
@RequestParam("userToken") String userToken
) {
WpsClientInVo in = new WpsClientInVo();
in.setFileId(fileId);
in.setFileName(fileName);
in.setUserToken(userToken);
String str = this.wpsService.getKSWpsUrl(in);
try {
response.setContentType("text/html;charset=utf-8");
PrintWriter out = response.getWriter();
out.println(str);
;
}catch (Exception e){
e.printStackTrace();
}
}
/** /**
* (金山)沃文档回调-查询文档 * (金山)沃文档回调-查询文档
* 编辑 permission=write * 编辑 permission=write