Skip to content

由于网络延时导致演习剩余次数判定错误 #5051

@Shao-Bo

Description

@Shao-Bo

Before you asking

  • I have searched the existing issues
  • I spend at least 5 minutes for thinking and preparing
  • I checked Frequently Asked Questions (FAQ) in Wiki page
  • I am using the latest version of Alas

Describe the bug

当除了演习外无其他任务在运行时,在到达整点时会立刻进入演习界面后,由于网络延时或本地时钟不准等问题,演习次数可能还未刷新,这会导致演习任务结束(根据错误的演习次数进行判断后,认为无需进行操作)。在演习设定为保留5次时,这会导致浪费5次演习次数。

To Reproduce

该情况可能由随机的网络延迟导致(在我使用过程中大约2周出现一次),可以考虑通过手动将本地时钟调快若干秒来模拟

Expected behavior

修改建议:在检查演习次数时同时判定一下演习刷新时间,若刷新时间小于一定阈值(如1分钟)则在1分钟后再次尝试进行演习。这样能保证正确消耗演习次数。

Relevant log output


Screenshots

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions