...
|
...
|
@@ -9,11 +9,15 @@ |
|
|
|
|
|
|
|
|
#### 请求参数
|
|
|
无
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|uid|string|是|20000904|0|客户端加密后的用户uid|
|
|
|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://localhost:8080/gateway?method=app.twoDimen.getCode&debug=XYZ
|
|
|
http://localhost:8080/gateway?method=app.twoDimen.getCode&debug=XYZ&uid=20000904
|
|
|
|
|
|
|
|
|
### 响应
|
...
|
...
|
@@ -24,7 +28,8 @@ code为200即为成功,否则是失败。 |
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"code": "T1Pn1iD1VdIdBAI5nW8JkQ=="
|
|
|
"code": "T1Pn1iD1VdIdBAI5nW8JkQ==",
|
|
|
"uid" : "20000904"
|
|
|
},
|
|
|
"md5": "a1887268e14465193f7421fe3749e2e8",
|
|
|
"message": "操作成功"
|
...
|
...
|
@@ -109,15 +114,21 @@ http://localhost:8080/gateway?method=app.twoDimen.loginCheck&code=T1Pn1iD1VdIdBA |
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"uid": "20000904"
|
|
|
},
|
|
|
"md5": "02e5ff24354846031f4d54c67071ea90",
|
|
|
"message": "登录成功"
|
|
|
}
|
|
|
|
|
|
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data":
|
|
|
{
|
|
|
"session_key": "f3b3ab82e4f880d540903b506dd0ef43",
|
|
|
"uid": "20000904"
|
|
|
},
|
|
|
"md5": "841e2f87918595ac8fcce4f0d1f2b7eb",
|
|
|
"message": "登录成功"
|
|
|
}
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
```json
|
...
|
...
|
|