在我的应用程序(php)中在线实现办公室...... Excel& powerpoint像魅力一样工作! 如果我想编辑Word文档,我会得到"会话已过期"在编辑器视图中。
我已在我的服务器上创建了一个日志文件......
日期 - 请求类型 - 错误匹配或"确定" - 当前锁定字符串 - 请求wopi-lock - 旧wopi锁
2017-06-08 14:35:00 - CheckFileInfo -- Current Lock: || X-Wopi-Lock: || X-Wopi-OldLock:
2017-06-08 14:35:01 - Lock - OK -- Current Lock: || X-Wopi-Lock: {"S":"fdcc8cdd-1173-4935-b94b-aca35228a332","F":4} || X-Wopi-OldLock:
2017-06-08 14:35:01 - GetFile -- Current Lock: || X-Wopi-Lock: || X-Wopi-OldLock:
2017-06-08 14:35:01 - Lock - Missmatch -- Current Lock: {"S":"fdcc8cdd-1173-4935-b94b-aca35228a332","F":4} || X-Wopi-Lock: {"S":"fdcc8cdd-1173-4935-b94b-aca35228a332","F":6,"E":2,"M":"2e113d2cc5e0457f94543c383961bd37","P":"3823A714-066D-4B80-9D32-439DA70147B0"} || X-Wopi-OldLock:
2017-06-08 14:35:01 - Lock - Missmatch -- Current Lock: {"S":"fdcc8cdd-1173-4935-b94b-aca35228a332","F":4} || X-Wopi-Lock: {"S":"fdcc8cdd-1173-4935-b94b-aca35228a332","F":6,"E":2,"M":"2e113d2cc5e0457f94543c383961bd37","P":"3823A714-066D-4B80-9D32-439DA70147B0"} || X-Wopi-OldLock:
2017-06-08 14:35:01 - Lock - Missmatch -- Current Lock: {"S":"fdcc8cdd-1173-4935-b94b-aca35228a332","F":4} || X-Wopi-Lock: {"S":"fdcc8cdd-1173-4935-b94b-aca35228a332","F":6,"E":2,"M":"2e113d2cc5e0457f94543c383961bd37","P":"3823A714-066D-4B80-9D32-439DA70147B0"} || X-Wopi-OldLock:
2017-06-08 14:35:05 - Unlock - Missmatch -- Current Lock: {"S":"fdcc8cdd-1173-4935-b94b-aca35228a332","F":4} || X-Wopi-Lock: GetCurrentLock-00000000-0000-0000-0000-000000000000 || X-Wopi-OldLock:
如果我" haked" " missmatch"中的200响应,会话过期消失:P 但是,我没有共同创作。
答案 0 :(得分:0)
好的,想通了!我没有得到OldLock标题,因为它在标题数组中是大小写的。
将$headers['X-Wopi-OldLock']
更改为$headers['X-Wopi-Oldlock']
,现在我又回来了!
感谢