目前服务器地址:http://106.14.223.219:8089/
{
"data": "json data",
"errorCode": 1000,
"message": "",
"success": true
}
{
"errorCode": 100001001,
"message": "[code:100001001,message:null]",
"success": false
}
{
"data": "xxx",
"errorCode": 1000,
"message": "",
"success": true
}
http://106.14.223.219:8089/register/sendRegSms.json
mobile 手机号
http://106.14.223.219:8089/register/sendRegSms.json?mobile=18061661296
{
"data": null,
"errorCode": 1000,
"message": "",
"success": true
}
http://106.14.223.219:8089/register/registerByMobile.json
mobile 手机号
password 密码
verifyCode 短信验证码
{
"data": {
"uid": 1,
"sessionId": "xasdadadassdsadasdasdasd"
},
"errorCode": 1000,
"message": "",
"success": true
}
https://127.0.0.1:8080/login/loginByMobile.json
userName 手机号
password 密码
verifyCode 验证码(可能没有,输错几次密码之后才会有)
{
"data": {
"allowAttation": 1,
"channelType": 0,
"headUrl": "",
"isVip": 0,
"nickName": "7f63af11-f3f2-4a26-89da-d5471fcae725",
"openId": "18061661297",
"regStat": 0,
"uid": 1006,
"sessionId": "xasdadadassdsadasdasdasd"
},
"errorCode": 1000,
"message": "",
"success": true
}
https://127.0.0.1:8080/login/loginByOpenId.json
openId: 第三方登录的openid,比如微博的uid
token: token信息
channelType: 频道类型 1-微博
https://127.0.0.1:8080/login/loginByOpenId.json?openId=123123123&token=123456abc&channelType=1
{
"data": {
"allowAttation": 1,
"channelType": 0,
"headUrl": "",
"isVip": 0,
"nickName": "7f63af11-f3f2-4a26-89da-d5471fcae725",
"openId": "18061661297",
"regStat": 0,
"uid": 1006,
"sessionId": "xasdadadassdsadasdasdasd"
},
"errorCode": 1000,
"message": "",
"success": true
}