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
a61afb74
Commit
a61afb74
authored
Nov 06, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修复支付后返回给POS积分错误Bug。
parent
45893f48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
task/taskpay.cpp
+3
-1
No files found.
task/taskpay.cpp
View file @
a61afb74
...
@@ -20,6 +20,7 @@ QByteArray TaskPay::doTask()
...
@@ -20,6 +20,7 @@ QByteArray TaskPay::doTask()
}
}
this
->
_session
=
preTask
->
session
();
this
->
_session
=
preTask
->
session
();
//! NOTE 以下获取优惠券代码有Bug,勿启用。米有的优惠券由认证接口返回。
// couponThread = new TaskCouponThread(posReqJsonObj, _session, this);
// couponThread = new TaskCouponThread(posReqJsonObj, _session, this);
// couponThread->start();
// couponThread->start();
// connect(couponThread, SIGNAL(finished(Session*)), SLOT(onGetCoupons(Session*)));
// connect(couponThread, SIGNAL(finished(Session*)), SLOT(onGetCoupons(Session*)));
...
@@ -121,7 +122,8 @@ void TaskPay::packagePOSRsp()
...
@@ -121,7 +122,8 @@ void TaskPay::packagePOSRsp()
posRspJsonObj
[
PosProps
.
Mobile
]
=
session
()
->
data
(
PosProps
.
Mobile
).
toString
();
posRspJsonObj
[
PosProps
.
Mobile
]
=
session
()
->
data
(
PosProps
.
Mobile
).
toString
();
posRspJsonObj
[
PosProps
.
Name
]
=
session
()
->
data
(
PosProps
.
Name
).
toString
();
posRspJsonObj
[
PosProps
.
Name
]
=
session
()
->
data
(
PosProps
.
Name
).
toString
();
posRspJsonObj
[
PosProps
.
Amount
]
=
session
()
->
data
(
PosProps
.
Amount
).
toInt
()
-
codeAmount
;
posRspJsonObj
[
PosProps
.
Amount
]
=
session
()
->
data
(
PosProps
.
Amount
).
toInt
()
-
codeAmount
;
posRspJsonObj
[
PosProps
.
Score
]
=
session
()
->
data
(
PosProps
.
Score
).
toInt
()
-
scoreAmount
;
int
score
=
(
scoreAmount
/
100
)
*
20
;
// 积分个数
posRspJsonObj
[
PosProps
.
Score
]
=
session
()
->
data
(
PosProps
.
Score
).
toInt
()
-
score
;
}
}
void
TaskPay
::
onPay
()
void
TaskPay
::
onPay
()
...
...
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