Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

放在服务器上,一两天不管,就自动掉线了?是因为心跳丢失导致的吗 #478

Open
code-innovator-zyx opened this issue Apr 18, 2024 · 10 comments

Comments

@code-innovator-zyx
Copy link

No description provided.

@mmdi1
Copy link

mmdi1 commented Apr 18, 2024

有没有可能你手机掉线了

@code-innovator-zyx
Copy link
Author

有没有可能你手机掉线了

It shouldn't be caused by the phone going offline. The phone is always online.

@useryyi
Copy link

useryyi commented Apr 19, 2024

手机掉线? 这个还需要手机微信一直在线吗?

@edisonX-sudo
Copy link

服务器上跑,一两天不管就掉线了+1

@code-innovator-zyx
Copy link
Author

这个我想了其他思路解决了,目前两个月没有掉线了

@edisonX-sudo
Copy link

这个我想了其他思路解决了,目前两个月没有掉线了

你好 可否指点一二
感谢🙏

@code-innovator-zyx
Copy link
Author

很无脑的办法,就是自动保活就行了,我的实现是关注了我自己的一个工具公众号,我的公众号有关键词回复功能,发ping,就会自动回复pong,你可以关注 "跳跳是只cat",然后向他发ping就行了 ,https://github.com/code-innovator-zyx/wechat-gptbot/blob/main/core/handler/speciallyAction.go

@edisonX-sudo
Copy link

很无脑的办法,就是自动保活就行了,我的实现是关注了我自己的一个工具公众号,我的公众号有关键词回复功能,发ping,就会自动回复pong,你可以关注 "跳跳是只cat",然后向他发ping就行了 ,https://github.com/code-innovator-zyx/wechat-gptbot/blob/main/core/handler/speciallyAction.go

这个我估计化好些时间都想不到 好人一生平安🙏

@863168558
Copy link

机器人不回复消息 有两种情况:1,真掉线了,服务器断了,2 是手机端微信长时间没有进入过,进入了假死状态,机器人不会回复消息,但是是在线状态的,这时候 手动打开一下手机端微信 是可以恢复正常的,不知道说的是哪种

@ldjx7
Copy link

ldjx7 commented May 28, 2024

很无脑的办法,就是自动保活就行了,我的实现是关注了我自己的一个工具公众号,我的公众号有关键词回复功能,发ping,就会自动回复pong,你可以关注 "跳跳是只cat",然后向他发ping就行了 ,https://github.com/code-innovator-zyx/wechat-gptbot/blob/main/core/handler/speciallyAction.go

这个我估计化好些时间都想不到 好人一生平安🙏

image
楼下这位大佬说的很对,一两天不管就掉线了一般是第二种情况,就是 "手机端微信长时间没有进入过,进入了假死状态,机器人不会回复消息,但是是在线状态的 "
我按照这个自动保活的方式,还是会掉线,并且发现,从心跳包发送失败到真正掉线会有一段时间,也就是假死的这个状态,在假死状态时,只需要手动打开一下手机端微信 是可以恢复正常的
如果假死状态没有打开手机端微信,一段时间后就会离线

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants