Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
D documents
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pass
  • documents
  • Wiki
  • Home

Home · Changes

Page history
Update home authored Feb 26, 2019 by 叶佳菲's avatar 叶佳菲
Hide whitespace changes
Inline Side-by-side
Showing with 32 additions and 5 deletions
+32 -5
  • home.md home.md +32 -5
  • No files found.
home.md
View page @ 60ac04ee
......@@ -55,10 +55,6 @@ http://pass.sovell.com/oauth/v2/check_token
Host: ${domain}
Authorization: Bearer ${token}
```
|参数名|类型|说明|
|:---|:---|:---|
|其他||见`公共请求参数说明`|
1. 发送成功后不返回实际内容,HttpStatus=200即为成功
......@@ -77,6 +73,16 @@ http://pass.sovell.com/oauth/v2/check_token
Host: ${domain}
Authorization: Bearer ${token}
```
|参数名|类型|说明|
|:---|:---|:---|
|session|string|由生成端生成,此参数全局唯一,可能会与其他生成端冲突,需要做好重试机制|
- 错误
|状态码|说明|
|:---|:---|
|409|session重复,此时可以重试|
1. 调用成功后返回auth_code,将其生成二维码
......@@ -84,7 +90,7 @@ http://pass.sovell.com/oauth/v2/check_token
- 子系统通过二维码解码作为code参数
- 可参考[文档rfc6749 4.1.3](https://tools.ietf.org/html/rfc6749#section-4.1.3)
1. 通过状态接口获取扫码结果
1. 调用扫码状态接口
- 一般由生产二维码端发起,用于展示二维码扫码结果
```
......@@ -93,6 +99,27 @@ http://pass.sovell.com/oauth/v2/check_token
Authorization: Bearer ${token}
```
|参数名|类型|说明|
|:---|:---|:---|
|session|string|与生成时使用相同值|
1. 得到扫码状态结果
```
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"code": "${state}"
}
```
|参数名|类型|说明|
|:---|:---|:---|
|state||状态|
||used|已使用|
||unused|未使用|
### 物理卡授权
1. 读出物理卡号
......
Clone repository
  • Home
  • 接口
    • 交易
    • 消息
    • 用户
    • 通用券
  • 渠道
    • 微信 1基本参数
    • 微信 2商户平台配置
    • 微信 3公众号参数
    • 微信 4公众平台配置
    • 微信(服务商方式)
    • 支付宝 1基本参数
    • 支付宝 2公钥上传
    • 支付宝(服务商方式)