checkUserExistWhenRegister 注册时判断用户是否已存在

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了checkUserExistWhenRegister 注册时判断用户是否已存在相关的知识,希望对你有一定的参考价值。

post

request: (如果手机号不存在,返回 0 )

技术分享
{
    "action": "checkUserExistWhenRegister",
    "requestData": {
        "Cellphone": "15221895555",
        "Email": "[email protected]"
    }
}
View Code

response:

技术分享
{
    "data": 0,
    "msg": "success",
    "responseCode": {
        "msgCode": 200,
        "msgDetail": "OK"
    },
    "serverTime": "2016-05-21 20:40:05",
    "success": true
}
View Code


request: (如果手机号存在, 返回 1 )

技术分享
{
    "action": "checkUserExistWhenRegister",
    "requestData": {
        "Cellphone": "15221895352"
    }
}
View Code

response:

技术分享
{
    "data": 1,
    "msg": "success",
    "responseCode": {
        "msgCode": 200,
        "msgDetail": "OK"
    },
    "serverTime": "2016-05-21 20:43:50",
    "success": true
}
View Code

request: (如果邮箱存在,返回 1 )

技术分享
{
    "action": "checkUserExistWhenRegister",
    "requestData": {
        "Email": "[email protected]"
    }
}
View Code

response:

技术分享
{
    "data": 1,
    "msg": "success",
    "responseCode": {
        "msgCode": 200,
        "msgDetail": "OK"
    },
    "serverTime": "2016-05-21 20:51:36",
    "success": true
}
View Code

request:(如果用户存在,返回 1 )

技术分享
{
    "action": "checkUserExistWhenRegister",
    "requestData": {
        "LoginName": "jones1"
    }
}
View Code

response:

技术分享
{
    "data": 1,
    "msg": "success",
    "responseCode": {
        "msgCode": 200,
        "msgDetail": "OK"
    },
    "serverTime": "2016-05-21 20:56:24",
    "success": true
}
View Code

 

 

以上是关于checkUserExistWhenRegister 注册时判断用户是否已存在的主要内容,如果未能解决你的问题,请参考以下文章