sdk-team 6 лет назад
Родитель
Сommit
c5b68d7ead

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2020-09-07 Version: patch
+- Add describes devices API.
+
 2020-09-05 Version: patch
 - Add describes devices API.
 

+ 1 - 1
vcs/include/alibabacloud/vcs/model/DescribeDevicesResult.h

@@ -37,7 +37,7 @@ namespace AlibabaCloud
 					struct Record
 					{
 						std::string inProtocol;
-						int status;
+						std::string status;
 						std::string deviceType;
 						std::string corpId;
 						std::string deviceAddress;

+ 1 - 1
vcs/src/model/DescribeDevicesResult.cc

@@ -69,7 +69,7 @@ void DescribeDevicesResult::parse(const std::string &payload)
 		if(!dataNodeRecordsRecord["Longitude"].isNull())
 			recordObject.longitude = dataNodeRecordsRecord["Longitude"].asString();
 		if(!dataNodeRecordsRecord["Status"].isNull())
-			recordObject.status = std::stoi(dataNodeRecordsRecord["Status"].asString());
+			recordObject.status = dataNodeRecordsRecord["Status"].asString();
 		if(!dataNodeRecordsRecord["Vendor"].isNull())
 			recordObject.vendor = dataNodeRecordsRecord["Vendor"].asString();
 		if(!dataNodeRecordsRecord["CorpId"].isNull())