You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
2.6 KiB
111 lines
2.6 KiB
|
2 years ago
|
## 加密规则
|
||
|
|
|
||
|
|
```
|
||
|
|
1、分解步骤
|
||
|
|
one = md5(CodeString)+md5(AppKey)
|
||
|
|
two = md5(one)+AppKey
|
||
|
|
therr = md5(two)
|
||
|
|
2、合并
|
||
|
|
md5(md5(md5(CodeString)+md5(AppKey))+AppKey)
|
||
|
|
```
|
||
|
|
|
||
|
|
## 接口访问规则
|
||
|
|
|
||
|
|
1、以POST方式访问 http://xxxx/empower/gaintoken
|
||
|
|
|
||
|
|
#### 参数
|
||
|
|
|
||
|
|
```json
|
||
|
|
{
|
||
|
|
"username":"jindie",
|
||
|
|
"password":"jindie123"
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
| 参数 | 说明 |
|
||
|
|
| -------- | ---- |
|
||
|
|
| username | 账号 |
|
||
|
|
| password | 密码 |
|
||
|
|
|
||
|
|
#### 返回值
|
||
|
|
|
||
|
|
```json
|
||
|
|
{
|
||
|
|
"code": 0,
|
||
|
|
"msg": "成功",
|
||
|
|
"data": {
|
||
|
|
"token": "6235a9de7109ba50852f3f9d3b3052ae",
|
||
|
|
"number": "16534571868477"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
| 参数 | 说明 | |
|
||
|
|
| ---- | ------ | -------------------------- |
|
||
|
|
| code | | 状态码 |
|
||
|
|
| msg | | 信息 |
|
||
|
|
| data | | 附加值 |
|
||
|
|
| | token | Token(有效时间为180分钟) |
|
||
|
|
| | number | 随机数 |
|
||
|
|
|
||
|
|
1、以POST方式访问 http://xxxx/接口
|
||
|
|
|
||
|
|
#### Header参数
|
||
|
|
|
||
|
|
| 参数 | 说明 |
|
||
|
|
| ------------ | ------------------------------ |
|
||
|
|
| token | 获取到得参数 |
|
||
|
|
| number | 加密后得随机数(参考加密规则) |
|
||
|
|
| Content-Type | 内容类型 |
|
||
|
|
| Origin | 站点信息 |
|
||
|
|
| User-Agent | 用户代理 |
|
||
|
|
|
||
|
|
#### Body参数 (接口需要得添加参数)
|
||
|
|
|
||
|
|
```json
|
||
|
|
{
|
||
|
|
"page":"1",
|
||
|
|
"pagesize":"20"
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
| 参数 | 说明 |
|
||
|
|
| -------- | -------------- |
|
||
|
|
| page | 页码 |
|
||
|
|
| pagesize | 每页显示多少条 |
|
||
|
|
|
||
|
|
#### 返回值
|
||
|
|
|
||
|
|
```json
|
||
|
|
{
|
||
|
|
"code": 0,
|
||
|
|
"msg": "成功",
|
||
|
|
"data": {
|
||
|
|
"count": 20,
|
||
|
|
"page": 1,
|
||
|
|
"pageSize": 20,
|
||
|
|
"total": 1147,
|
||
|
|
"list": []
|
||
|
|
}
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
| 参数 | 说明 | |
|
||
|
|
| ---- | -------- | -------------- |
|
||
|
|
| code | | 状态码 |
|
||
|
|
| msg | | 信息 |
|
||
|
|
| data | | 附加值 |
|
||
|
|
| | count | 本页共多少数据 |
|
||
|
|
| | page | 当前页码 |
|
||
|
|
| | pageSize | 每页显示多少条 |
|
||
|
|
| | .... | .... |
|
||
|
|
|
||
|
|
#### 认证信息
|
||
|
|
|
||
|
|
| 参数 | 说明 |
|
||
|
|
| ---------------- | ------------------------ |
|
||
|
|
| UserKey | shuziluanshen |
|
||
|
|
| Password | shu@zi#luan$shen |
|
||
|
|
| VerificationCode | mingqi_hr |
|
||
|
|
| 访问地址 | http://120.224.6.6:39168 |
|