From 8cc0896ed43a92a9a3771d06cde2e7d8e596cc15 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 16 Mar 2020 18:36:40 +0800 Subject: [PATCH] DescribeFaceVerify API Return DeviceToken Field. --- CHANGELOG | 3 +++ VERSION | 2 +- .../cloudauth/model/DescribeFaceVerifyResult.h | 1 + .../alibabacloud/cloudauth/model/InitDeviceRequest.h | 3 +++ cloudauth/src/CloudauthClient.cc | 6 +++--- cloudauth/src/model/DescribeFaceVerifyResult.cc | 2 ++ cloudauth/src/model/InitDeviceRequest.cc | 11 +++++++++++ 7 files changed, 24 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 3d73bac77..5e3b1c35a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-03-16 Version: 1.36.321 +- DescribeFaceVerify API Return DeviceToken Field. + 2020-03-16 Version: 1.36.320 - Release. - Add virtual host modification API. diff --git a/VERSION b/VERSION index 535eed2f5..191aa2f89 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.320 \ No newline at end of file +1.36.321 \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeFaceVerifyResult.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeFaceVerifyResult.h index 1a6ad4c75..a45723ddb 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeFaceVerifyResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeFaceVerifyResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct ResultObject { std::string passed; + std::string deviceToken; std::string identityInfo; std::string materialInfo; }; diff --git a/cloudauth/include/alibabacloud/cloudauth/model/InitDeviceRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/InitDeviceRequest.h index aa826d1d1..1dcac8a74 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/InitDeviceRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/InitDeviceRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setMerchant(const std::string& merchant); std::string getAppVersion()const; void setAppVersion(const std::string& appVersion); + std::string getDeviceToken()const; + void setDeviceToken(const std::string& deviceToken); std::string getCertifyId()const; void setCertifyId(const std::string& certifyId); std::string getOuterOrderNo()const; @@ -61,6 +63,7 @@ namespace AlibabaCloud std::string bizData_; std::string merchant_; std::string appVersion_; + std::string deviceToken_; std::string certifyId_; std::string outerOrderNo_; std::string produceNode_; diff --git a/cloudauth/src/CloudauthClient.cc b/cloudauth/src/CloudauthClient.cc index 401d2651e..bf210eafd 100644 --- a/cloudauth/src/CloudauthClient.cc +++ b/cloudauth/src/CloudauthClient.cc @@ -31,21 +31,21 @@ CloudauthClient::CloudauthClient(const Credentials &credentials, const ClientCon RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth"); } CloudauthClient::CloudauthClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth"); } CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth"); } CloudauthClient::~CloudauthClient() diff --git a/cloudauth/src/model/DescribeFaceVerifyResult.cc b/cloudauth/src/model/DescribeFaceVerifyResult.cc index 130e8cf73..593b51e44 100644 --- a/cloudauth/src/model/DescribeFaceVerifyResult.cc +++ b/cloudauth/src/model/DescribeFaceVerifyResult.cc @@ -46,6 +46,8 @@ void DescribeFaceVerifyResult::parse(const std::string &payload) resultObject_.identityInfo = resultObjectNode["IdentityInfo"].asString(); if(!resultObjectNode["MaterialInfo"].isNull()) resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString(); + if(!resultObjectNode["DeviceToken"].isNull()) + resultObject_.deviceToken = resultObjectNode["DeviceToken"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Code"].isNull()) diff --git a/cloudauth/src/model/InitDeviceRequest.cc b/cloudauth/src/model/InitDeviceRequest.cc index de245209f..f3f9e3215 100644 --- a/cloudauth/src/model/InitDeviceRequest.cc +++ b/cloudauth/src/model/InitDeviceRequest.cc @@ -71,6 +71,17 @@ void InitDeviceRequest::setAppVersion(const std::string& appVersion) setParameter("AppVersion", appVersion); } +std::string InitDeviceRequest::getDeviceToken()const +{ + return deviceToken_; +} + +void InitDeviceRequest::setDeviceToken(const std::string& deviceToken) +{ + deviceToken_ = deviceToken; + setParameter("DeviceToken", deviceToken); +} + std::string InitDeviceRequest::getCertifyId()const { return certifyId_;