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
c04b81ce
Commit
c04b81ce
authored
Apr 16, 2018
by
gujin.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改计算总支付额的方式
parent
556e985a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
task/taskpay.cpp
+4
-2
No files found.
task/taskpay.cpp
View file @
c04b81ce
...
@@ -303,7 +303,9 @@ void TaskPay::packagePOSRsp()
...
@@ -303,7 +303,9 @@ void TaskPay::packagePOSRsp()
description
[
10004
]
=
QStringLiteral
(
"微信支付"
);
description
[
10004
]
=
QStringLiteral
(
"微信支付"
);
//计算总支付额
//计算总支付额
int
totalPaid
=
0
;
int
totalPaid
=
getServerJsonValue
(
"scoreAmount"
).
toInt
()
+
getServerJsonValue
(
"disAmount"
).
toInt
()
+
getServerJsonValue
(
"codeAmount"
).
toInt
();
for
(
int
i
=
0
;
i
<
servPayArray
.
size
();
i
++
)
for
(
int
i
=
0
;
i
<
servPayArray
.
size
();
i
++
)
{
{
...
@@ -314,7 +316,7 @@ void TaskPay::packagePOSRsp()
...
@@ -314,7 +316,7 @@ void TaskPay::packagePOSRsp()
pay_id
[
"code"
]
=
servPayArray
[
i
].
toObject
()[
"code"
].
toString
();
pay_id
[
"code"
]
=
servPayArray
[
i
].
toObject
()[
"code"
].
toString
();
pay_ids
.
push_back
(
pay_id
);
pay_ids
.
push_back
(
pay_id
);
totalPaid
+=
pay_id
[
"pay_amount"
].
toInt
();
//
totalPaid += pay_id["pay_amount"].toInt();
}
}
posRspJsonObj
[
"paid_total_amount"
]
=
totalPaid
;
posRspJsonObj
[
"paid_total_amount"
]
=
totalPaid
;
posRspJsonObj
[
"pay_ids"
]
=
pay_ids
;
posRspJsonObj
[
"pay_ids"
]
=
pay_ids
;
...
...
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