Skip to content

2.3.2 活体识别(可选)

工具类接口;提供活体识别的功能

图片来源场景:拍照
图片格式:jpg
图片分辨率要求:大于 320 x 320 且小于 640 x 640,图片分辨率压缩时,需要等比压缩

建议:拍照界面增加人像引导框。

  • 接口提供方: 流量承接方(KN)
  • 接口调用方: 流量提供方
  • method: util_living

请求参数

参数类型必选说明备注
phonestringN用户手机号10位;
phone&receiver_user_id&
provider_user_id传其中一个即可
receiver_user_idstringN流量承接方的用户id不超过32位;
phone&receiver_user_id&
provider_user_id传其中一个即可
provider_user_idstringN流量提供方的用户id不超过32位;
phone&receiver_user_id&
provider_user_id传其中一个即可
image_urlstringY照片地址-

响应参数

参数类型必选说明备注
statusintY业务状态码3.3.10

请求参数示例

json
{
    "phone": "0612345678",
    "image_url": "https://abc.com/def"
}

响应参数示例

json
{
    "code": 0,
    "message": "success",
    "data": {
        "status": 22100
    }
}