Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FMVip_Today
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
FMVip_Today
Commits
683927f8
Commit
683927f8
authored
Oct 27, 2016
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修复只向服务器传余额支付金额,没传代金券和积分金额的Bug. 2. 优化网络错误的提示信息。
parent
6bed3d8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
FMVip/fmvipforward.cpp
+14
-1
FMVip/fmviporder.h
+1
-1
No files found.
FMVip/fmvipforward.cpp
View file @
683927f8
...
...
@@ -7,6 +7,8 @@
#include <QDateTime>
#include <QEventLoop>
#include <QTimer>
#include <QSettings>
#include <QApplication>
#include "backup/fmbackup.h"
#include <QDebug>
...
...
@@ -143,7 +145,18 @@ void FMVipForward::onServerFinished(QNetworkReply *reply, bool isTimeOut)
posObj
[
"print2"
]
=
""
;
}
else
{
posObj
[
"statusCode"
]
=
404
;
posObj
[
"msg"
]
=
reply
->
errorString
();
QString
errCode
=
QString
::
number
(
int
(
reply
->
error
()));
QString
errMsg
=
"网络连接错误(%1): %2"
;
// 获取错误提示
QSettings
setting
(
qApp
->
applicationDirPath
()
+
"/config.ini"
,
QSettings
::
IniFormat
);
setting
.
setIniCodec
(
"GBK"
);
setting
.
beginGroup
(
"NetworkError"
);
QString
errInfo
=
setting
.
value
(
errCode
).
toString
();
if
(
errInfo
==
""
)
{
errInfo
=
setting
.
value
(
"default"
).
toString
();
}
posObj
[
"msg"
]
=
errMsg
.
arg
(
errCode
).
arg
(
errInfo
);
setting
.
endGroup
();
if
(
isTimeOut
)
{
posObj
[
"msg"
]
=
"向非码服务器请求超时"
;
}
...
...
FMVip/fmviporder.h
View file @
683927f8
...
...
@@ -75,7 +75,7 @@ private:
QString
getPayAmountStr
(
QString
amountStr
)
{
double
payAmount
=
amountStr
.
toDouble
(
)
*
100
;
double
payAmount
=
MIN
(
_needPay
,
(
amountStr
.
toDouble
()
+
_couponAmount
+
_useScore
)
)
*
100
;
return
QString
::
number
(
payAmount
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment