Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FMVip_Today
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
FMVip_Today
Commits
32a008df
Commit
32a008df
authored
Oct 17, 2016
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 新增第三方支付(待确认)。2. 规范debuglog.txt文件位置。
parent
421ec86f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
+12
-1
FMVip/fmvipforward.cpp
+10
-0
FMVip/fmvipforward.h
+1
-0
FMVip/main.cpp
+1
-1
No files found.
FMVip/fmvipforward.cpp
View file @
32a008df
...
...
@@ -22,6 +22,7 @@ FMVipForward::FMVipForward(QObject *parent) : QObject(parent)
{
_urlStr
=
_cfg
.
GetTransUrlFormat
();
_sessionDataList
=
QString
(
"operator_id,pos_id,business_date"
).
split
(
","
);
_thirdTypeList
=
QString
(
"支付宝,微信,银联,其他"
).
split
(
","
);
connect
(
&
_nam
,
SIGNAL
(
finished
(
QNetworkReply
*
)),
this
,
SLOT
(
onServerFinished
(
QNetworkReply
*
)));
}
...
...
@@ -230,6 +231,15 @@ void FMVipForward::final(const QJsonObject &job, QJsonObject &fmjob)
scoreAmount
=
pay_ob
[
"paid_total_amount"
].
toInt
();
}
else
if
(
type
==
"77"
)
{
coupons
.
append
(
pay_ob
[
"code"
].
toString
());
}
else
if
(
type
==
"26"
)
{
thirdAmount
=
pay_ob
[
"padi_total_amount"
].
toInt
();
transObj
[
"thirdPayTransId"
]
=
pay_ob
[
"paid_transid"
];
QString
thirdPayType
=
pay_ob
[
"pay_str"
].
toString
().
trimmed
();
int
t
=
_thirdTypeList
.
indexOf
(
thirdPayType
);
if
(
t
<
0
)
{
type
=
_thirdTypeList
.
length
();
}
transObj
[
"thirdPayType"
]
=
t
;
}
}
transObj
[
"coupons"
]
=
coupons
;
...
...
FMVip/fmvipforward.h
View file @
32a008df
...
...
@@ -104,6 +104,7 @@ private:
QMap
<
QString
,
QVariant
>
_sessionDataMap
;
QStringList
_sessionDataList
;
QStringList
_thirdTypeList
;
signals
:
void
serverResponsed
(
const
QJsonObject
&
rspData
);
private
slots
:
...
...
FMVip/main.cpp
View file @
32a008df
...
...
@@ -63,7 +63,7 @@ void customMessageHandler(QtMsgType type,const QMessageLogContext& Context, cons
QString
strDateTime
=
QDateTime
::
currentDateTime
().
toString
(
"yyyy-MM-dd hh:mm:ss ddd"
);
QFile
outFile
(
"debuglog.txt"
);
QFile
outFile
(
qApp
->
applicationDirPath
()
+
"debuglog.txt"
);
outFile
.
open
(
QIODevice
::
WriteOnly
|
QIODevice
::
Append
);
QTextStream
ts
(
&
outFile
);
ts
<<
strDateTime
<<
txt
<<
"
\r\n
"
;
...
...
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