Commit 454a4b3b by gujin.wang

修改商品券所对应的字段名

parent 4e8b65c5
...@@ -266,6 +266,7 @@ QJsonObject FMPRedeem::ShowForUnConsum(QJsonObject json) ...@@ -266,6 +266,7 @@ QJsonObject FMPRedeem::ShowForUnConsum(QJsonObject json)
QString ebcode = codeInfo["ebcode"].toString(); QString ebcode = codeInfo["ebcode"].toString();
QString time_name = QString::fromLocal8Bit("有效期至: ").append(vdata); QString time_name = QString::fromLocal8Bit("有效期至: ").append(vdata);
int couponType = json["couponType"].toInt(); int couponType = json["couponType"].toInt();
_products_info = codeInfo["products"].toArray();
if( ConsumptionDialog::ShowForUnConsum(act_name, code_name,time_name,coupon)) if( ConsumptionDialog::ShowForUnConsum(act_name, code_name,time_name,coupon))
{ {
...@@ -292,7 +293,7 @@ QJsonObject FMPRedeem::ShowForUnConsum(QJsonObject json) ...@@ -292,7 +293,7 @@ QJsonObject FMPRedeem::ShowForUnConsum(QJsonObject json)
QJsonObject product; QJsonObject product;
product.insert("seq", 1); product.insert("seq", 1);
product.insert("pid", _products_info[i].toObject()["pid"]); product.insert("pid", _products_info[i].toObject()["pid"]);
product.insert("consume_num", _products_info[i].toObject()["consume_num"]); product.insert("consume_num", _products_info[i].toObject()["number"]);
products.append(product); products.append(product);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment