File size: 582 Bytes
e1fd143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 部署完成后的测试命令

# 1. 健康检查
curl https://你的render域名.onrender.com/

# 2. 截图测试
curl -X POST https://你的render域名.onrender.com/screenshot \
  -H "Content-Type: application/json" \
  -d '{"url": "https://google.com", "width": 1280, "height": 720}' \
  --output test-screenshot.jpg

# 3. 如果在Windows PowerShell中测试
Invoke-RestMethod -Uri "https://你的render域名.onrender.com/screenshot" `
  -Method POST `
  -ContentType "application/json" `
  -Body '{"url": "https://google.com"}' `
  -OutFile "screenshot.jpg"