Skip to content

Commit c6f429b

Browse files
publish jdcloud-sdk-go version 1.0.13
1 parent 22d6ec3 commit c6f429b

6 files changed

Lines changed: 20 additions & 1 deletion

File tree

services/cloudauth/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ Date: 2024-03-12
3636
1.0.12:
3737
Date: 2024-06-18
3838
更新: 增加失联地址识别接口
39+
40+
1.0.13:
41+
Date: 2024-07-16
42+
更新: 新版活体检测

services/cloudauth/apis/GetAliveResult.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ type GetAliveResultResponse struct {
100100
type GetAliveResultResult struct {
101101
FaceImage string `json:"faceImage"`
102102
SceneImage string `json:"sceneImage"`
103+
Video string `json:"video"`
103104
H5Result string `json:"h5Result"`
104105
SmResult string `json:"smResult"`
105106
RxResult string `json:"rxResult"`

services/cloudauth/apis/GetAliveResultNew.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ type GetAliveResultNewResponse struct {
100100
type GetAliveResultNewResult struct {
101101
FaceImage string `json:"faceImage"`
102102
SceneImage string `json:"sceneImage"`
103+
Video string `json:"video"`
103104
H5Result string `json:"h5Result"`
104105
SmResult string `json:"smResult"`
105106
RxResult string `json:"rxResult"`

services/cloudauth/apis/GetAliveUrlNew.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ type GetAliveUrlNewRequest struct {
3232

3333
/* 采集结束后自动跳转的目标地址(须以http或https开头,长度不超过128字符) */
3434
ReturnUrl string `json:"returnUrl"`
35+
36+
/* 指定动作,逗号隔开。(LookLeft 向左,LookRight 向右,OpenMouth 张嘴,BlinkEye 眨眼,ShakeHead 摇头,NodHead 点头) (Optional) */
37+
Actions *string `json:"actions"`
3538
}
3639

3740
/*
@@ -58,11 +61,13 @@ func NewGetAliveUrlNewRequest(
5861
* param name: 姓名(需要进行身份核验时传递此参数) (Optional)
5962
* param idcard: 身份证号(需要进行身份核验时传递此参数) (Optional)
6063
* param returnUrl: 采集结束后自动跳转的目标地址(须以http或https开头,长度不超过128字符) (Required)
64+
* param actions: 指定动作,逗号隔开。(LookLeft 向左,LookRight 向右,OpenMouth 张嘴,BlinkEye 眨眼,ShakeHead 摇头,NodHead 点头) (Optional)
6165
*/
6266
func NewGetAliveUrlNewRequestWithAllParams(
6367
name *string,
6468
idcard *string,
6569
returnUrl string,
70+
actions *string,
6671
) *GetAliveUrlNewRequest {
6772

6873
return &GetAliveUrlNewRequest{
@@ -75,6 +80,7 @@ func NewGetAliveUrlNewRequestWithAllParams(
7580
Name: name,
7681
Idcard: idcard,
7782
ReturnUrl: returnUrl,
83+
Actions: actions,
7884
}
7985
}
8086

@@ -103,6 +109,10 @@ func (r *GetAliveUrlNewRequest) SetIdcard(idcard string) {
103109
func (r *GetAliveUrlNewRequest) SetReturnUrl(returnUrl string) {
104110
r.ReturnUrl = returnUrl
105111
}
112+
/* param actions: 指定动作,逗号隔开。(LookLeft 向左,LookRight 向右,OpenMouth 张嘴,BlinkEye 眨眼,ShakeHead 摇头,NodHead 点头)(Optional) */
113+
func (r *GetAliveUrlNewRequest) SetActions(actions string) {
114+
r.Actions = &actions
115+
}
106116

107117

108118
// GetRegionId returns path parameter 'regionId' if exist,

services/cloudauth/client/CloudauthClient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewCloudauthClient(credential *core.Credential) *CloudauthClient {
4040
Credential: *credential,
4141
Config: *config,
4242
ServiceName: "cloudauth",
43-
Revision: "1.0.12",
43+
Revision: "1.0.13",
4444
Logger: core.NewDefaultLogger(core.LogInfo),
4545
}}
4646
}

services/cloudauth/models/AliveResultInfo.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ type AliveResultInfo struct {
2525
/* 场景照片base64 (Optional) */
2626
SceneImage string `json:"sceneImage"`
2727

28+
/* 现场视频base64 (Optional) */
29+
Video string `json:"video"`
30+
2831
/* H5活体检测结果 (Optional) */
2932
H5Result string `json:"h5Result"`
3033

0 commit comments

Comments
 (0)