~~~
data = {"username":"用户名","password":"密码","machine_code":"机器码"}
Request:服务器地址 + "index.php/api/User/login"
POST:"id=" + 软件ID + "&data=" + 加密 (data)
~~~
#### 返回json**加密数据**
#### 解密后结果
~~~
{"code":"608","data":{"endtime":"1496247276","point":"10","token":"6uIOEgH6oMpObJZVx26d"}}
~~~
#### 结果说明
~~~
code:608 登陆成功 data.endtime:到期时间戳 data.point:点数 data.token:Token
code:602 缺少参数
code:601 用户名不存在
code:603 密码错误
code:604 账号状态:停封(冻结)
code:605 机器码不对应。PS:程序开启了机器码绑定
code:606 账号已到期。
code:607 用户在线 不可登陆 PS:程序开启了此项功能
~~~