Commit 93c2c7d2 by Carwyn

修正:1.POS传过来的支付金额转换成整型后为 0 问题

parent 23590ad3
......@@ -53,7 +53,7 @@ void TaskFinal::packageServerReq()
foreach(auto p, getPosJsonValue(PosProps.Pay_ids).toArray())
{
QJsonObject pay;
int payAmount = p.toObject()["pay_amount"].toInt();
int payAmount = p.toObject()["pay_amount"].toDouble();
payTotalAmount += payAmount;
pay["amount"] = payAmount;
pay["thirdPayTransId"] = p.toObject()["pay_transId"].toString();
......
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