Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
功能说明
解决凭证出现 400/403 错误码后需要手动点击"检验"按钮恢复的问题。
新增后台自动检验服务,定时检查凭证状态,发现错误码自动执行检验恢复。
主要改动
src/auto_verify.py自动检验服务模块config.py添加配置项web.py集成到应用生命周期web_routes.py添加手动触发接口配置项
API 接口
POST /auto-verify/trigger- 手动触发检验GET /auto-verify/status- 获取服务状态使用方式
AUTO_VERIFY_ENABLED=true启用启用后会每5分钟检查一次,发现有错误码的凭证自动执行检验恢复。