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
23590ad3
Commit
23590ad3
authored
Sep 21, 2017
by
Carwyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正: 1. POS 订单金额转换成整型后是 0 问题
parent
dd1d7d70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
fmvipdispatcher.cpp
+2
-0
task/taskfinal.cpp
+1
-1
No files found.
fmvipdispatcher.cpp
View file @
23590ad3
...
...
@@ -64,6 +64,7 @@ void FMVipDispatcher::doTask(const QByteArray &reqData, QByteArray &rspData)
epay
->
DockPayRequest
(
reqData
);
epay
->
StartService
();
rspData
=
epay
->
DockPayRespond
();
epay
->
StopService
();
}
else
{
rspData
=
QString
::
fromLocal8Bit
(
"{
\"
msg:
\"
:
\"
支付服务不可用
\"
}"
).
toUtf8
();
...
...
@@ -96,6 +97,7 @@ void FMVipDispatcher::doTask(const QByteArray &reqData, QByteArray &rspData)
epay
->
DockRefundRequest
(
reqData
);
epay
->
StartService
();
rspData
=
epay
->
DockRefundRespond
();
epay
->
StopService
();
}
else
{
rspData
=
QString
::
fromLocal8Bit
(
"{
\"
msg:
\"
:
\"
退款服务不可用
\"
}"
).
toUtf8
();
...
...
task/taskfinal.cpp
View file @
23590ad3
...
...
@@ -28,7 +28,7 @@ void TaskFinal::packageServerReq()
transData
[
ServerProps
(
prop
)]
=
getPosJsonValue
(
prop
);
}
int
orderAmount
=
getPosJsonValue
(
PosProps
.
OrderAmount
).
to
Int
();
int
orderAmount
=
getPosJsonValue
(
PosProps
.
OrderAmount
).
to
Double
();
if
(
transData
[
ServerProps
(
PosProps
.
PaidAmount
)].
toInt
()
==
0
)
{
transData
[
ServerProps
(
PosProps
.
PaidAmount
)]
=
orderAmount
;
...
...
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