标签:
1,图片验证码
http://localhost:2448/api/ashx/imgvalidate.ashx
2, 短信验证码
http://****/api/ashx/service.ashx
POST
request 1: (错误手机号)
{ "action": "sendSmsCode", "cellphone": "23sadf", "isDebug": 1 }
response 1:
{ "data": null, "msg": "wrong cellphone.", "responseCode": { "msgCode": 500, "msgDetail": "Crash" }, "serverTime": "2016-05-08 08:45:06", "success": false }
request 2: (正确的手机号)
{ "action":"sendSmsCode", "cellphone":"17091429413" }
reponse 2:
{ "data": true, "msg": "success", "responseCode": { "msgCode": 200, "msgDetail": "OK" }, "serverTime": "2016-05-08 08:48:53", "success": true }
标签:
原文地址:http://www.cnblogs.com/jwiter/p/5469761.html