From 0cdb7bfa7c85e144a72e4d1bbff7840e5669c2c7 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 26 Jul 2022 08:10:29 +0000 Subject: [PATCH] Change ListCheckInstanceResult Public. --- CHANGELOG | 3 +++ VERSION | 2 +- .../alibabacloud/sas/model/GetFileDetectResultResult.h | 6 +----- sas/src/model/GetFileDetectResultResult.cc | 5 ++--- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 96db3bb59..ceccf3550 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-07-26 Version: 1.36.1206 +- Change ListCheckInstanceResult Public. + 2022-07-26 Version: 1.36.1205 - Support API ARMInstance. - Support Control ARM API. diff --git a/VERSION b/VERSION index b71956c30..dd987d25a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1205 \ No newline at end of file +1.36.1206 \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/GetFileDetectResultResult.h b/sas/include/alibabacloud/sas/model/GetFileDetectResultResult.h index 965d11fd0..77be22639 100644 --- a/sas/include/alibabacloud/sas/model/GetFileDetectResultResult.h +++ b/sas/include/alibabacloud/sas/model/GetFileDetectResultResult.h @@ -34,11 +34,7 @@ namespace AlibabaCloud public: struct Result { - struct Ext - { - std::string virusName; - }; - Ext ext; + std::string ext; int score; std::string virusType; std::string hashKey; diff --git a/sas/src/model/GetFileDetectResultResult.cc b/sas/src/model/GetFileDetectResultResult.cc index 8f37d0305..915278665 100644 --- a/sas/src/model/GetFileDetectResultResult.cc +++ b/sas/src/model/GetFileDetectResultResult.cc @@ -51,9 +51,8 @@ void GetFileDetectResultResult::parse(const std::string &payload) resultListObject.score = std::stoi(valueResultListResult["Score"].asString()); if(!valueResultListResult["VirusType"].isNull()) resultListObject.virusType = valueResultListResult["VirusType"].asString(); - auto extNode = value["Ext"]; - if(!extNode["VirusName"].isNull()) - resultListObject.ext.virusName = extNode["VirusName"].asString(); + if(!valueResultListResult["Ext"].isNull()) + resultListObject.ext = valueResultListResult["Ext"].asString(); resultList_.push_back(resultListObject); }