求助only office 插件 和在线协作根据教程配置几天实在不会了
自己架设only office 服务器根据教程配置only office 插件 和在线协作,也没有用xadmin , 一直都是这样!实在不会了 ,自己在内网架设的! 用O2OA的ONLYOFFICE 服务器 和自己内网的虚拟机架设的ONLY office服务器都是一样的报错 !json文件也改了 sample.o2oa.net官网的测试环境我这边也是一样的。 您的服务器使用的是http还是https呢?
https://onlyoffice1.o2oa.net/
http://onlyoffice2.o2oa.net/
我们这边有两台,您可以先使用我们的试试看,如果可以,那就能确定是您服务器的问题
深入程序内部找问题原因:
找到xxx/o2server/servers/webServer/x_component_CloudDocumentEditor下的Main.js文件
先将Main.min.js修改为Main.min.js.bak,再将Main.js修改为Main.js,然后在文件最后倒数第16-17行,有如下两条语句:
this.document.editor.document.url = o2.filterUrl(this.document.editor.document.url);
this.document.editor.editorConfig.callbackUrl = o2.filterUrl(this.document.editor.editorConfig.callbackUrl);
增加如下两行,把上面两个url在浏览器的控制台中打印出来,然后复制到浏览器中看能否正常访问,如果不能正常访问,说明相应的配置有错。
console.log(this.document.editor.document.url);
console.log(this.document.editor.editorConfig.callbackUrl);
页:
[1]