~~~[api] post:http://dev.kekezu.net/api/user/login *username#账号 *password#密码 <<< success { "code": 1000, "message": "u767bu5f55u6210u529f", "data": { "id": 154, "name": "15007196370", "email": "", "token": "eyJpdiI6IllCQzBTWWJUK1dDa2hSeGVkUEdIK3c9PSIsInZhbHVlIjoiWG9LTmg3QlRZanJlUXBHQzNTcVpUcER2c3ZXd2FVSlJGQ1kyQlc1S1pCS2FCSkdQcURIWG5nU3Y5WERcL2o1SVJpU2NLMzVZc2VYejI4WUVOU2w2NUNHSGR4UUFvM1oyUmlDYXRjcXNMaFAzKzF3dUxPaHZUVWtcLzgyR0NTbEVabWx0bTU1UlBMdkhrcVFpaTlGM1FFOElSVjVHeWpsWmJDQkFRSUwyTXhtalAyMjlHZFZOd2pvY0M1V01nMkVjT2dsQmxBenZ6ZUtpZ0RQakhWVVo4eklnPT0iLCJtYWMiOiIyMjI2Njc4YmVjMTJkODZmNDNmODA1MmU5MTNjNDNiMWVkODI4MzVlNDMyYTkzNDQ3NDhkNjI5Y2Q3ZjlkMjI2In0=" "avatar": "http://dev.kekezu.net/attachment/user/2016/09/06/2ae262368d88d75c1d3f8d30b92f1d7a.png"-------------------------------用户头像 "im_password" => "111111" ---------------------------------openim登录密码 } } <<< remark code 1000/1001/1006/1007 message 登陆成功/验证错误信息/用户不存在/您输入的密码不正确 data 当code为1000时返回不为空的data,当code为1001时返回的data是验证的详细错误信息,否则返回为空的data ~~~