客户接口/客户谷歌验证

生成谷歌验证账号

post

version=0.0.1 bizType=customer.app.GoogleVerifyApiService.generateGoogleAccount 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
objectOptional
Responses
200Success
application/json
post
/global/customer.app.GoogleVerifyApiService.generateGoogleAccount
POST /api/global/customer.app.GoogleVerifyApiService.generateGoogleAccount HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-e9558c26-a4e5-486b-831c-f53604646396-1677653793570",
  "code": "0",
  "data": {
    "code": null,
    "createTime": 1659087780437,
    "qrcode": "otpauth://totp/CTS2(2023-03-01)(86000116)?secret=RAUW2G2WRHKRSV5L",
    "updateTime": 1677653793296,
    "secret": "RAUW2G2WRHKRSV5L",
    "id": 41,
    "customerNo": "86000116",
    "status": 2
  },
  "bizCode": "",
  "tm": 22789118,
  "msgParams": null,
  "ok": true
}

检查谷歌验证码状态

post

version=0.0.1 bizType=customer.app.GoogleVerifyApiService.checkGoogleCode 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
codestringRequired

谷歌验证码

Responses
200Success
application/json
post
/global/customer.app.GoogleVerifyApiService.checkGoogleCode
POST /api/global/customer.app.GoogleVerifyApiService.checkGoogleCode HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "code": "text"
}
200Success
{

    "msg": "Success",

    "fail": false,

    "trace": "x-2g2cku-47l3ei-kh1y9s4-3ol18a5w-1677637672",

    "code": "0",

    "data": false,//true 通过,false 不通过

    "bizCode": "",

    "tm": 6313035,

    "msgParams": null,

    "ok": true

}

Last updated