Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

系统休眠后唤醒,程序接受不到聊天消息 #25

Closed
flyfei opened this issue Aug 30, 2017 · 13 comments
Closed

系统休眠后唤醒,程序接受不到聊天消息 #25

flyfei opened this issue Aug 30, 2017 · 13 comments

Comments

@flyfei
Copy link

flyfei commented Aug 30, 2017

synccheck 接口
status 200
response window.synccheck={retcode:"0",selector:"2"}
然后执行 webwxsync 接口
status canceled 没有数据返回

再然后就没synccheck/webwxsync接口请求了

@trazyn
Copy link
Owner

trazyn commented Aug 30, 2017

漏掉了这一条消息么?

@flyfei
Copy link
Author

flyfei commented Aug 30, 2017

好像是,这是 网络请求记录
image

@flyfei
Copy link
Author

flyfei commented Aug 30, 2017

能不能系统唤醒后,程序还能接收到新消息(先不考虑漏掉的消息)

@trazyn
Copy link
Owner

trazyn commented Aug 30, 2017 via email

@flyfei
Copy link
Author

flyfei commented Aug 30, 2017

OK。唤醒设备后,就停到这儿了,webwxsync canceled 状态
image

@trazyn
Copy link
Owner

trazyn commented Aug 30, 2017 via email

@flyfei
Copy link
Author

flyfei commented Aug 30, 2017

@trazyn 嗯,可以让系统休眠的时间长些,唤醒后,再看看

@trazyn
Copy link
Owner

trazyn commented Aug 30, 2017 via email

@trazyn trazyn closed this as completed Aug 31, 2017
@flyfei
Copy link
Author

flyfei commented Aug 31, 2017

更新后,到目前还没有复现。👍

@flyfei
Copy link
Author

flyfei commented Sep 1, 2017

用的新的程序。唤醒后,收不到数据
image

@flyfei
Copy link
Author

flyfei commented Sep 1, 2017

这样处理,看行不行 ?点击某个聊天的时候,会有网络请求(比方说webwxgeticon请求)。执行请求的时候,检测 synccheck/webwxsync 是否能用

@trazyn
Copy link
Owner

trazyn commented Sep 1, 2017

这样子垃圾请求感觉有点多,有洁癖不喜欢看到这种东西
目前超时掉线和用户登出还有系统唤醒都能检测出,剩下断网的检测没有

@trazyn trazyn reopened this Sep 1, 2017
@trazyn
Copy link
Owner

trazyn commented Sep 4, 2017

添加离线检测

@trazyn trazyn closed this as completed Sep 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants