fixed #51
This commit is contained in:
@@ -39,14 +39,14 @@ void BatchGetAliyunIdByAliyunPkResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allProfileList = value["ProfileList"]["ProfileItem"];
|
||||
for (auto value : allProfileList)
|
||||
auto allProfileListNode = value["ProfileList"]["ProfileItem"];
|
||||
for (auto valueProfileListProfileItem : allProfileListNode)
|
||||
{
|
||||
ProfileItem profileListObject;
|
||||
if(!value["AliyunId"].isNull())
|
||||
profileListObject.aliyunId = value["AliyunId"].asString();
|
||||
if(!value["AliyunPk"].isNull())
|
||||
profileListObject.aliyunPk = value["AliyunPk"].asString();
|
||||
if(!valueProfileListProfileItem["AliyunId"].isNull())
|
||||
profileListObject.aliyunId = valueProfileListProfileItem["AliyunId"].asString();
|
||||
if(!valueProfileListProfileItem["AliyunPk"].isNull())
|
||||
profileListObject.aliyunPk = valueProfileListProfileItem["AliyunPk"].asString();
|
||||
profileList_.push_back(profileListObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void QueryCustomerLabelResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["CustomerLabel"];
|
||||
for (auto value : allData)
|
||||
auto allDataNode = value["Data"]["CustomerLabel"];
|
||||
for (auto valueDataCustomerLabel : allDataNode)
|
||||
{
|
||||
CustomerLabel dataObject;
|
||||
if(!value["Label"].isNull())
|
||||
dataObject.label = value["Label"].asString();
|
||||
if(!value["LabelSeries"].isNull())
|
||||
dataObject.labelSeries = value["LabelSeries"].asString();
|
||||
if(!valueDataCustomerLabel["Label"].isNull())
|
||||
dataObject.label = valueDataCustomerLabel["Label"].asString();
|
||||
if(!valueDataCustomerLabel["LabelSeries"].isNull())
|
||||
dataObject.labelSeries = valueDataCustomerLabel["LabelSeries"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user