Commit 0705a1d9 by zhenfei.zhang

Merge branch 'dev' into 'dev'

在卡券支付的返回结果中添加一个字段coupon_price,表示购券金额

See merge request !2
parents aff8b30d 28cdcc64
......@@ -297,11 +297,13 @@ QJsonObject FMPRedeem::ShowForUnConsum(QJsonObject json)
QJsonObject pay_id;
if(couponType == 0) //商品券
{
pay_id["pay_amount"] = SearchJsonObject(json, "paid").toInt();
pay_id["pay_amount"] = SearchJsonObject(json, "price_act").toInt();
pay_id["coupon_price"] = SearchJsonObject(json, "paid").toInt();
}
else if(couponType == 1) //代金券
{
pay_id["pay_amount"] = SearchJsonObject(json, "amount").toInt();
pay_id["coupon_price"] = pay_id["pay_amount"];
}
pay_id["pay_id"] = couponType;
pay_id["pay_str"] = act_name;
......
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