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
17b1b469
Commit
17b1b469
authored
Sep 22, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修复结算时存入数据库的fm_transId为空问题。
parent
bc272c87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
global.h
+1
-0
task/taskfinal.cpp
+10
-1
No files found.
global.h
View file @
17b1b469
...
...
@@ -244,6 +244,7 @@ const PropsMap::value_type PropsMapPairs[] =
PropsMap
::
value_type
(
PosProps
.
Pay_id
,
"typeModeFlag"
),
PropsMap
::
value_type
(
PosProps
.
Pay_amount
,
"amount"
),
PropsMap
::
value_type
(
PosProps
.
ConsumeNum
,
"consumeNum"
),
PropsMap
::
value_type
(
PosProps
.
Pay_ids
,
"payList"
),
};
static
PropsMap
PosToServerProps
(
PropsMapPairs
,
PropsMapPairs
+
(
sizeof
(
PropsMapPairs
)
/
sizeof
(
PropsMapPairs
[
0
])));
...
...
task/taskfinal.cpp
View file @
17b1b469
...
...
@@ -130,7 +130,16 @@ void TaskFinal::packagePOSRsp()
QString
trans_id
=
getPosJsonValue
(
PosProps
.
TransId
).
toString
();
QString
fm_open_id
=
getServerJsonValue
(
PosProps
.
Fm_open_id
).
toString
();
QString
fm_id
=
getServerJsonValue
(
PosProps
.
Fm_id
).
toString
();
QString
fm_transId
=
getServerJsonValue
(
"thirdPayTransId"
).
toString
();
QString
fm_transId
=
""
;
foreach
(
auto
p
,
getServerJsonValue
(
PosProps
.
Pay_ids
).
toArray
())
{
QJsonObject
pay
=
p
.
toObject
();
QString
typeModeFlag
=
pay
[
"typeModeFlag"
].
toString
();
if
(
typeModeFlag
==
"20010"
)
{
fm_transId
=
pay
[
"thirdPayTransId"
].
toString
();
}
}
FMBackup
::
instance
()
->
insertNewOrder
(
trans_id
,
fm_open_id
,
fm_id
,
fm_transId
);
}
}
...
...
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