request_script.sh 466 B

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