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
8bebb516
Commit
8bebb516
authored
Jul 21, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 对应结算接口中的支付方式。 2. 修改认证接口中是否展示用户信息的判断。
parent
9b5214e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
19 deletions
+11
-19
task/taskfinal.cpp
+10
-18
task/tasklogin.cpp
+1
-1
No files found.
task/taskfinal.cpp
View file @
8bebb516
...
...
@@ -46,28 +46,20 @@ void TaskFinal::packageServerReq()
{
QJsonObject
pay
;
pay
[
"amount"
]
=
p
.
toObject
()[
"pay_amount"
];
pay
[
"thirdPayTransId"
]
=
""
;
pay
[
"thirdPayTransId"
]
=
p
.
toObject
()[
"pay_transId"
].
toString
()
;
pay
[
"code"
]
=
p
.
toObject
()[
"code"
].
toString
();
pay
[
"transId"
]
=
p
.
toObject
()[
"trans_id"
];
pay
[
"payTransId"
]
=
p
.
toObject
()[
"pay_transId"
].
toString
();
pay
[
PosProps
.
TransId
]
=
getPosJsonValue
(
PosProps
.
TransId
);
QString
typeModeFlag
=
p
.
toObject
()[
"pay_id"
].
toString
();
if
(
typeModeFlag
==
"0"
)
{
if
(
typeModeFlag
==
"0101"
)
{
//现金支付
pay
[
"typeModeFlag"
]
=
"20005"
;
}
else
if
(
typeModeFlag
==
"7"
)
{
//支付宝钱包
pay
[
"typeModeFlag"
]
=
"10001"
;
//???
}
else
if
(
typeModeFlag
==
"9"
)
{
//微信钱包
pay
[
"typeModeFlag"
]
=
"10004"
;
//???
}
else
{
}
else
if
(
typeModeFlag
==
"0301"
)
{
pay
[
"typeModeFlag"
]
=
"10011"
;
}
else
if
(
typeModeFlag
==
"0302"
)
{
pay
[
"typeModeFlag"
]
=
"10011"
;
}
else
if
(
typeModeFlag
==
"0303"
)
{
pay
[
"typeModeFlag"
]
=
"10011"
;
}
else
{
pay
[
"typeModeFlag"
]
=
typeModeFlag
;
}
...
...
task/tasklogin.cpp
View file @
8bebb516
...
...
@@ -74,7 +74,7 @@ void TaskLogin::onLogin()
QString
birthday
=
getServerJsonValue
(
PosProps
.
Birthday
).
toString
();
QString
name
=
getServerJsonValue
(
PosProps
.
Name
).
toString
();
if
(
getServerJsonValue
(
PosProps
.
CanPay
)
==
-
1
)
{
if
(
getServerJsonValue
(
PosProps
.
CanPay
)
.
toInt
()
==
0
)
{
FMMsgWnd
::
LoginSuccess
(
account
,
name
,
birthday
,
_window
);
}
...
...
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