@fuyb1986
2017-05-18T06:47:31.000000Z
字数 468
阅读 586
冰橙课件
hashkey 用来验证图片上数字、字母,这些数字、字母是 key;
(hashkey, key) 成对才能通过验证
只能用 ajax 访问;
Method | Resource URL | Authorization |
---|---|---|
GET | /api/captcha/refresh/ | NO |
Name | Descript |
---|---|
image_url | 图片地址 |
key | hashkey |
curl -X GET -H "Conent-Type: application/json" -H "X-Requested-With: XMLHttpRequest" http://localhost/api/captcha/refresh/
{
"image_url": "/captcha/image/5d8a9834e64ce134845d69b715b78cf89fed9226/",
"key": "5d8a9834e64ce134845d69b715b78cf89fed9226"
}