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
b45ef97b
Commit
b45ef97b
authored
Jul 10, 2017
by
yunpeng.song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复fm_id为null服务端不是别的问题,积分支付isusescore的字段名错误
parent
b67aac97
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
fmnetwork.cpp
+8
-1
global.h
+2
-1
task/taskfinal.cpp
+1
-3
No files found.
fmnetwork.cpp
View file @
b45ef97b
...
@@ -55,8 +55,15 @@ int FMNetwork::send(const QString &url, const QByteArray &reqData, QByteArray &r
...
@@ -55,8 +55,15 @@ int FMNetwork::send(const QString &url, const QByteArray &reqData, QByteArray &r
FMP_INFO
()
<<
"Server Response: "
<<
rspData
;
FMP_INFO
()
<<
"Server Response: "
<<
rspData
;
}
else
{
}
else
{
int
err
=
reply
->
error
();
int
err
=
reply
->
error
();
error
=
FM_API_NETWORERROR
;
if
(
err
==
401
)
{
error
=
FM_API_BADJSON
;
}
else
{
error
=
FM_API_NETWORERROR
;
}
errorMsg
=
netErrInfo
(
err
);
errorMsg
=
netErrInfo
(
err
);
FMP_ERROR
()
<<
reply
->
error
();
}
}
}
else
{
}
else
{
error
=
FM_API_TIMEOUT
;
error
=
FM_API_TIMEOUT
;
...
...
global.h
View file @
b45ef97b
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#include <QObject>
#include <QObject>
#include <QApplication>
#include <QApplication>
#include <string>
#include <string>
#include <QMap>
// 商家信息
// 商家信息
#define APP_ID "T013"
#define APP_ID "T013"
...
@@ -86,7 +87,7 @@ struct PP{
...
@@ -86,7 +87,7 @@ struct PP{
CodeAmount
=
"codeAmount"
;
CodeAmount
=
"codeAmount"
;
ScoreAmount
=
"scoreAmount"
;
ScoreAmount
=
"scoreAmount"
;
IsUseScore
=
"is
UseS
core"
;
IsUseScore
=
"is
uses
core"
;
Coupons
=
"coupons"
;
Coupons
=
"coupons"
;
Transaction
=
"transactions"
;
Transaction
=
"transactions"
;
OrderAmount
=
"order_amount"
;
OrderAmount
=
"order_amount"
;
...
...
task/taskfinal.cpp
View file @
b45ef97b
...
@@ -15,10 +15,8 @@ void TaskFinal::packageServerReq()
...
@@ -15,10 +15,8 @@ void TaskFinal::packageServerReq()
p1
.
push_back
(
PosProps
.
Fm_id
);
p1
.
push_back
(
PosProps
.
Fm_id
);
p1
.
push_back
(
PosProps
.
TransId
);
p1
.
push_back
(
PosProps
.
TransId
);
foreach
(
QString
prop
,
p1
)
{
foreach
(
QString
prop
,
p1
)
{
qDebug
()
<<
prop
<<
getPosJsonValue
(
prop
);
serverReqJsonObj
[
ServerProps
(
prop
)]
=
getPosJsonValue
(
prop
).
toString
();
serverReqJsonObj
[
ServerProps
(
prop
)]
=
getPosJsonValue
(
prop
);
}
}
QJsonObject
trans
;
QJsonObject
trans
;
std
::
vector
<
QString
>
p2
;
std
::
vector
<
QString
>
p2
;
p2
.
push_back
(
PosProps
.
Fm_open_id
);
p2
.
push_back
(
PosProps
.
Fm_open_id
);
...
...
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