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
556e985a
Commit
556e985a
authored
Apr 15, 2018
by
gujin.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付类型的代码
parent
15cc2cd3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletions
+33
-1
task/taskfinal.cpp
+33
-1
No files found.
task/taskfinal.cpp
View file @
556e985a
...
@@ -63,7 +63,7 @@ void TaskFinal::packageServerReq()
...
@@ -63,7 +63,7 @@ void TaskFinal::packageServerReq()
pay
[
"transId"
]
=
getPosJsonValue
(
"trans_id"
).
toString
();
pay
[
"transId"
]
=
getPosJsonValue
(
"trans_id"
).
toString
();
pay
[
"payTransId"
]
=
p
.
toObject
()[
"pay_transId"
].
toString
();
pay
[
"payTransId"
]
=
p
.
toObject
()[
"pay_transId"
].
toString
();
QString
typeModeFlag
=
p
.
toObject
()[
"pay_id"
].
toString
();
QString
typeModeFlag
=
p
.
toObject
()[
"pay_id"
].
toString
();
#if 0
if(typeModeFlag == "00")
if(typeModeFlag == "00")
{
{
//现金支付
//现金支付
...
@@ -108,6 +108,38 @@ void TaskFinal::packageServerReq()
...
@@ -108,6 +108,38 @@ void TaskFinal::packageServerReq()
pay["typeModeFlag"] = typeModeFlag.toInt();
pay["typeModeFlag"] = typeModeFlag.toInt();
FMP_ERROR() << QStringLiteral("未知的支付类型: ") << typeModeFlag;
FMP_ERROR() << QStringLiteral("未知的支付类型: ") << typeModeFlag;
}
}
#endif
if
(
typeModeFlag
==
"84"
)
{
//会员商品券
pay
[
"typeModeFlag"
]
=
20004
;
}
else
if
(
typeModeFlag
==
"85"
)
{
//会员代金券
pay
[
"typeModeFlag"
]
=
20003
;
}
else
if
(
typeModeFlag
==
"86"
)
{
//非码会员支付
pay
[
"typeModeFlag"
]
=
20001
;
}
else
if
(
typeModeFlag
==
"0"
)
{
//现金
pay
[
"typeModeFlag"
]
=
20005
;
}
else
if
(
typeModeFlag
==
"75"
)
{
//虚拟支付
pay
[
"typeModeFlag"
]
=
10012
;
}
else
{
//其他支付方式,统一转为20007
pay
[
"typeModeFlag"
]
=
20007
;
FMP_ERROR
()
<<
QStringLiteral
(
"其他支付: "
)
<<
typeModeFlag
;
}
// if(typeModeFlag == "20002")
// if(typeModeFlag == "20002")
// {
// {
...
...
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