This commit is contained in:
wb-hx510875
2019-09-19 11:14:07 +08:00
parent 2f6036b803
commit ba463ae2dc
1795 changed files with 41555 additions and 38367 deletions

View File

@@ -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);
}

View File

@@ -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())