Ver Fonte

fix: RRpcResult messageId type
fix #119

wb-hx510875 há 5 anos atrás
pai
commit
efb0804bf2

+ 1 - 1
iot/include/alibabacloud/iot/model/RRpcResult.h

@@ -52,7 +52,7 @@ namespace AlibabaCloud
 				std::string errorMessage_;
 				std::string code_;
 				bool success_;
-				long messageId_;
+				unsigned long long messageId_;
 
 			};
 		}

+ 1 - 1
iot/src/model/RRpcResult.cc

@@ -50,7 +50,7 @@ void RRpcResult::parse(const std::string &payload)
 	if(!value["PayloadBase64Byte"].isNull())
 		payloadBase64Byte_ = value["PayloadBase64Byte"].asString();
 	if(!value["MessageId"].isNull())
-		messageId_ = std::stol(value["MessageId"].asString());
+		messageId_ = std::stoull(value["MessageId"].asString());
 
 }