码迷,mamicode.com
首页 > 其他好文 > 详细

图片验证码,短信验证码

时间:2016-05-08 09:10:52      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

1,图片验证码

  http://localhost:2448/api/ashx/imgvalidate.ashx

 

2, 短信验证码

  http://****/api/ashx/service.ashx

  POST

  request 1: (错误手机号)

技术分享
{
    "action": "sendSmsCode",
    "cellphone": "23sadf",
    "isDebug": 1
}
View Code

    response 1:

技术分享
{
    "data": null,
    "msg": "wrong cellphone.",
    "responseCode": {
        "msgCode": 500,
        "msgDetail": "Crash"
    },
    "serverTime": "2016-05-08 08:45:06",
    "success": false
}
View Code

   request 2: (正确的手机号)

技术分享
{
   "action":"sendSmsCode",
   "cellphone":"17091429413"
}
View Code

  reponse 2:

技术分享
{
    "data": true,
    "msg": "success",
    "responseCode": {
        "msgCode": 200,
        "msgDetail": "OK"
    },
    "serverTime": "2016-05-08 08:48:53",
    "success": true
}
View Code

  

 

图片验证码,短信验证码

标签:

原文地址:http://www.cnblogs.com/jwiter/p/5469761.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!