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
c8ecd983
Commit
c8ecd983
authored
Jul 31, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修复。
parent
76da6d3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
task/taskfinal.cpp
+2
-2
task/taskpay.cpp
+2
-1
No files found.
task/taskfinal.cpp
View file @
c8ecd983
...
...
@@ -34,7 +34,7 @@ void TaskFinal::packageServerReq()
{
QJsonObject
product
;
product
[
"consumNum"
]
=
p
.
toObject
()[
"consume_num"
];
int
price
=
p
.
toObject
()[
"price"
].
to
Double
()
*
100
;
int
price
=
p
.
toObject
()[
"price"
].
to
Int
()
*
100
;
product
[
"price"
]
=
price
;
product
[
"productId"
]
=
p
.
toObject
()[
"pid"
];
...
...
@@ -49,7 +49,7 @@ void TaskFinal::packageServerReq()
pay
[
"amount"
]
=
p
.
toObject
()[
"pay_amount"
];
pay
[
"thirdPayTransId"
]
=
p
.
toObject
()[
"pay_transId"
].
toString
();
pay
[
"code"
]
=
p
.
toObject
()[
"code"
].
toString
();
pay
[
PosProps
.
TransId
]
=
getPosJsonValue
(
PosProps
.
TransId
);
pay
[
ServerProps
(
PosProps
.
TransId
)
]
=
getPosJsonValue
(
PosProps
.
TransId
);
QString
typeModeFlag
=
p
.
toObject
()[
"pay_id"
].
toString
();
if
(
typeModeFlag
==
"0101"
)
{
//现金支付
...
...
task/taskpay.cpp
View file @
c8ecd983
...
...
@@ -68,6 +68,7 @@ void TaskPay::packageServerReq()
transData
[
ServerProps
(
PosProps
.
TransId
)]
=
getPosJsonValue
(
PosProps
.
TransId
);
transData
[
ServerProps
(
PosProps
.
Fm_id
)]
=
getPosJsonValue
(
PosProps
.
Fm_id
);
transData
[
ServerProps
(
PosProps
.
Fm_id
)]
=
""
;
transData
[
ServerProps
(
PosProps
.
Fm_open_id
)]
=
session
()
->
data
(
PosProps
.
Fm_open_id
).
toString
();
QJsonArray
products
;
...
...
@@ -77,7 +78,7 @@ void TaskPay::packageServerReq()
QJsonObject
obj
=
clientArray
[
i
].
toObject
();
QJsonObject
serverObj
;
serverObj
[
"consumeNum"
]
=
obj
[
"consume_num"
];
int
price
=
obj
[
"price"
].
to
String
().
toDouble
()
*
100
;
int
price
=
obj
[
"price"
].
to
Int
()
*
100
;
serverObj
[
"price"
]
=
price
;
serverObj
[
"productId"
]
=
obj
[
"pid"
];
products
.
push_back
(
serverObj
);
...
...
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