Repository navigation
🐛 修复 crontab 示例中不可用的演示 API - #1542
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Checklist / 检查清单
Description / 描述
修复 crontab 示例中使用的不可用演示 API,将原来的
dog.ceo请求替换为httpbun.com/get,并同步更新@connect配置。同时调整了响应校验逻辑,改为检查请求状态码和返回的 URL,避免示例依赖不稳定或不可用的第三方接口。
本次变更还新增了对应的 Vitest 测试,用于验证 crontab 示例会请求正确的 API,并在请求成功后输出预期日志。
Screenshots / 截图
无界面变更。