Skip to content

🐛 修复 crontab 示例中不可用的演示 API - #1542

Merged
CodFrm merged 1 commit into
scriptscat:mainfrom
cyfung1031:pr/fix-crontab-example
Jul 8, 2026
Merged

CodFrm merged 1 commit into
scriptscat:mainfrom
cyfung1031:pr/fix-crontab-example

Conversation

@cyfung1031

@cyfung1031 cyfung1031 commented Jul 5, 2026 •

Copy link
Copy Markdown
Collaborator

Checklist / 检查清单

  • Fixes mentioned issues / 修复已提及的问题
  • Code reviewed by human / 代码通过人工检查
  • Changes tested / 已完成测试

Description / 描述

修复 crontab 示例中使用的不可用演示 API,将原来的 dog.ceo 请求替换为 httpbun.com/get,并同步更新 @connect 配置。

同时调整了响应校验逻辑,改为检查请求状态码和返回的 URL,避免示例依赖不稳定或不可用的第三方接口。

本次变更还新增了对应的 Vitest 测试,用于验证 crontab 示例会请求正确的 API,并在请求成功后输出预期日志。

Screenshots / 截图

无界面变更。

@cyfung1031 cyfung1031 changed the title 🐛 replace unavailable crontab demo API 🐛 修复 crontab 示例中不可用的演示 API Jul 5, 2026
@CodFrm
CodFrm merged commit 42bf518 into scriptscat:main Jul 8, 2026
7 checks passed
@cyfung1031
cyfung1031 deleted the pr/fix-crontab-example branch October 10, 2026 23:32
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

Successfully merging this pull request may close these issues.

2 participants