Commit 288a7869 by NitefullWind

1. 修复因精度问题支付金额错误Bug。

parent bdf39390
...@@ -183,7 +183,7 @@ FMPPayDialog::FMPPayDialog(FMPePayPrivate *control, QVariantHash basicinfo, QWid ...@@ -183,7 +183,7 @@ FMPPayDialog::FMPPayDialog(FMPePayPrivate *control, QVariantHash basicinfo, QWid
int FMPPayDialog::getPayAmount() const int FMPPayDialog::getPayAmount() const
{ {
int amount = ui->lineedit_num->text().toDouble() * 100; int amount = (ui->lineedit_num->text().toDouble()+0.005) * 100;
return amount; return amount;
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#define VER_MINOR 1 #define VER_MINOR 1
#define VER_REVISION 0 #define VER_REVISION 0
#define VER_BUILD 27 #define VER_BUILD 28
//! Convert version numbers to string //! Convert version numbers to string
#define _STR(S) #S #define _STR(S) #S
......
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