Fix ResourceId type from Long to String on QueryCostUnitResource.

This commit is contained in:
sdk-team
2019-11-13 16:38:49 +08:00
parent 022c13a360
commit a9de1411e4
5 changed files with 9 additions and 6 deletions

View File

@@ -53,7 +53,7 @@ void QueryCostUnitResourceResult::parse(const std::string &payload)
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserId"].isNull())
resourceInstanceListObject.resourceUserId = std::stol(dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserId"].asString());
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceId"].isNull())
resourceInstanceListObject.resourceId = std::stol(dataNodeResourceInstanceDtoListResourceInstanceList["ResourceId"].asString());
resourceInstanceListObject.resourceId = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceId"].asString();
if(!dataNodeResourceInstanceDtoListResourceInstanceList["CommodityCode"].isNull())
resourceInstanceListObject.commodityCode = dataNodeResourceInstanceDtoListResourceInstanceList["CommodityCode"].asString();
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserName"].isNull())