Added parsing of pop_product_id and pop_product_name.
This commit is contained in:
parent
7d452c82b7
commit
4d7e5263ee
@ -582,6 +582,13 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json)
|
||||
this->currentPaymentOptions.last().pop_id = k->value.GetInt();
|
||||
} else if (strcmp(inner_obj_name, "pop_label") == 0) {
|
||||
this->currentPaymentOptions.last().pop_label = k->value.GetString();
|
||||
} else if (strcmp(inner_obj_name, "pop_product_id") == 0) {
|
||||
this->currentPaymentOptions.last().pop_product_id = k->value.GetInt();
|
||||
} else if (strcmp(inner_obj_name, "pop_product_name") == 0) {
|
||||
if (k->value.IsString()) {
|
||||
QString const &s = QString::fromStdString(k->value.GetString());
|
||||
this->currentPaymentOptions.last().pop_product_name = s;
|
||||
}
|
||||
} else if (strcmp(inner_obj_name, "pop_payment_method_id") == 0) {
|
||||
this->currentPaymentOptions.last().pop_payment_method_id = k->value.GetInt();
|
||||
} else if (strcmp(inner_obj_name, "pop_day_end_time") == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user