From efb0804bf23d570a946f8dc889f37bf0a696014f Mon Sep 17 00:00:00 2001 From: wb-hx510875 Date: Thu, 19 Nov 2020 14:31:06 +0800 Subject: [PATCH] fix: RRpcResult messageId type fix #119 --- iot/include/alibabacloud/iot/model/RRpcResult.h | 2 +- iot/src/model/RRpcResult.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iot/include/alibabacloud/iot/model/RRpcResult.h b/iot/include/alibabacloud/iot/model/RRpcResult.h index 5775b10d8..5874a5104 100644 --- a/iot/include/alibabacloud/iot/model/RRpcResult.h +++ b/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_; }; } diff --git a/iot/src/model/RRpcResult.cc b/iot/src/model/RRpcResult.cc index 51723eceb..712c7b9fc 100644 --- a/iot/src/model/RRpcResult.cc +++ b/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()); }