Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

新增断网暂停等待网络恢复功能#1909

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
kaedelcb wants to merge8 commits intobabalae:main
base:main
Choose a base branch
Loading
fromkaedelcb:main-net

Conversation

@kaedelcb
Copy link
Contributor

  • 新增网络检测功能,当网络检测失败时,会自动暂停BGI脚本运行,等待网络恢复后自动继续执行(包含点击确认按键和重新登录游戏)。
    1、该功能在“设置”-->“其他设置”中进行配置开启。
    2、网络检测使用PING命令进行,可配置PING的网站。
    3、避免堵塞其他任务,使用异步执行,并用设置5秒的执行间隔。
    4、目前测试3天,都正常。

@huiyadanli
Copy link
Member

暂放,准备丢到实时任务中

@kaedelcb
Copy link
ContributorAuthor

准备放在实时触发里?我感觉这种属于异常处理的辅助功能,放在其他设置中也挻好的,不过还是要考滤优先级的问题先。

@kaedelcbkaedelcb deleted the main-net branchJuly 23, 2025 13:55
@kaedelcbkaedelcb restored the main-net branchJuly 23, 2025 13:55
@kaedelcbkaedelcb reopened thisJul 23, 2025
@kaedelcb
Copy link
ContributorAuthor

把手动和网络失败的暂停区分开来,因为异步执行多次恢复函数,只要有一次执行完成,后续的自动返回,否则继续暂停,增加可靠性。

@kaedelcb
Copy link
ContributorAuthor

尝试做到实时任务,但在暂停状态下,实时任务本身也会暂停,有没其他执行办法?不过建议还是按我PR的做法,目前测试效果还可以。@huiyadanli

@huiyadanli
Copy link
Member

先不急,这份PR的代码我会迁移到其他地方,先保留PR

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@kaedelcb@huiyadanli

[8]ページ先頭

©2009-2025 Movatter.jp