Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_vip
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
fmp_vip
Commits
27fef372
Commit
27fef372
authored
Nov 06, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 所有接口弹窗显示错误信息。
parent
630ae302
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
2 deletions
+11
-2
fmp_vip.pro
+1
-1
task/fmtask.cpp
+4
-0
task/fmtasknownd.cpp
+4
-0
task/taskpay.cpp
+1
-0
windows/fmviporder.h
+1
-1
No files found.
fmp_vip.pro
View file @
27fef372
...
...
@@ -11,7 +11,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG
+=
c
++
11
DEFINES
+=
TEST
#
DEFINES += TEST
SOURCES
+=
\
fmp_vip
.
cpp
\
...
...
task/fmtask.cpp
View file @
27fef372
...
...
@@ -50,6 +50,10 @@ QByteArray FMTask::doTask()
RunFunction
(
showWindow
);
RunFunction
(
packagePOSRsp
);
if
(
getServerJsonValue
(
PosProps
.
StatusCode
).
toInt
((
int
)
FM_API_SUCCESS
)
!=
FM_API_SUCCESS
)
{
FMMsgWnd
::
FailureWnd
(
getServerJsonValue
(
PosProps
.
Msg
).
toString
(
"Unknown error"
),
_window
);
}
QJsonDocument
json
(
posRspJsonObj
);
return
json
.
toJson
(
QJsonDocument
::
Compact
);
}
...
...
task/fmtasknownd.cpp
View file @
27fef372
...
...
@@ -34,6 +34,10 @@ QByteArray FMTaskNoWnd::doTask()
}
packagePOSRsp
();
if
(
getServerJsonValue
(
PosProps
.
StatusCode
).
toInt
((
int
)
FM_API_SUCCESS
)
!=
FM_API_SUCCESS
)
{
FMMsgWnd
::
FailureWnd
(
getServerJsonValue
(
PosProps
.
Msg
).
toString
(
"Unknown error"
),
_window
);
}
QJsonDocument
json
(
posRspJsonObj
);
return
json
.
toJson
(
QJsonDocument
::
Compact
);
}
task/taskpay.cpp
View file @
27fef372
...
...
@@ -2,6 +2,7 @@
#include "fmviporder.h"
#include "tasklogin.h"
#include "fmp_vip_settings.h"
#include "fmmsgwnd.h"
TaskPay
::
TaskPay
(
QJsonObject
&
jsonObj
,
QObject
*
parent
)
:
FMTask
(
jsonObj
,
FM_Pay
,
0
,
parent
)
...
...
windows/fmviporder.h
View file @
27fef372
...
...
@@ -58,7 +58,7 @@ private:
this
->
_needPayStr
=
needPayStr
;
_amount
=
_amountStr
.
toInt
()
/
100
.
0
;
_score
=
(
score
/
20
)
*
100
;
// 20积分=1元钱
_score
=
(
score
/
20
);
// 20积分=1元钱
_needPay
=
_needPayStr
.
toInt
()
/
100
.
0
;
_maxWillPay
=
_useScore
=
_couponAmount
=
0
;
...
...
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