Commit c04b81ce by gujin.wang

修改计算总支付额的方式

parent 556e985a
......@@ -303,7 +303,9 @@ void TaskPay::packagePOSRsp()
description[10004] = QStringLiteral("微信支付");
//计算总支付额
int totalPaid = 0;
int totalPaid = getServerJsonValue("scoreAmount").toInt()
+ getServerJsonValue("disAmount").toInt()
+ getServerJsonValue("codeAmount").toInt();
for(int i = 0; i < servPayArray.size(); i++)
{
......@@ -314,7 +316,7 @@ void TaskPay::packagePOSRsp()
pay_id["code"] = servPayArray[i].toObject()["code"].toString();
pay_ids.push_back(pay_id);
totalPaid += pay_id["pay_amount"].toInt();
//totalPaid += pay_id["pay_amount"].toInt();
}
posRspJsonObj["paid_total_amount"] = totalPaid;
posRspJsonObj["pay_ids"] = pay_ids;
......
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