|
|
@@ -146,7 +146,14 @@ void CShopinfo::InitShopinfoByGetshopinfo(rapidjson::Value& data)
|
|
|
newDiscount.is_discount = discountinfo["is_discount"].GetString();
|
|
|
}
|
|
|
|
|
|
- newDiscount.member_level = discountinfo["vip_level"].GetString();
|
|
|
+ if (discountinfo.HasMember("vip_level") == true)
|
|
|
+ {
|
|
|
+ newDiscount.member_level = discountinfo["vip_level"].GetString();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ newDiscount.member_level = "-1";
|
|
|
+ }
|
|
|
|
|
|
m_discount_info.push_back(newDiscount);
|
|
|
}
|