- API_ENDPOINTS=(
- "https://hb.swdz.com/api/ai/buildStory"
- "https://hb.swdz.com/api/ai/buildTitle"
- "https://hb.swdz.com/api/ai/buildKeyword"
- "https://hb.swdz.com/api/ai/buildSd"
- "https://hb.swdz.com/api/ai/getOpensdDetail"
- "https://hb.swdz.com/api/ai/buildPinyin"
- )
- while true; do
- for endpoint in "${API_ENDPOINTS[@]}"; do
- curl -s "$endpoint" # 发送HTTP请求,-s选项用于静默模式
- done
- sleep 5 # 休眠1秒
- done
|