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
5542399f
Commit
5542399f
authored
Nov 16, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修复签名时商户号字段错误Bug。
parent
7448cbf8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
fmvip/fmvipdispatcher.cpp
+3
-0
fmvip/global.h
+2
-2
fmvip/task/fmtask.cpp
+1
-1
version.h
+1
-1
No files found.
fmvip/fmvipdispatcher.cpp
View file @
5542399f
...
@@ -94,6 +94,9 @@ void FMVipDispatcher::doTask(const QByteArray &reqData, QByteArray &rspData)
...
@@ -94,6 +94,9 @@ void FMVipDispatcher::doTask(const QByteArray &reqData, QByteArray &rspData)
rspData
=
QString
::
fromLocal8Bit
(
ErrorMsgJson
).
arg
(
FM_API_ERROR
).
arg
(
QString
::
fromLocal8Bit
(
"未设置门店信息,不能进行支付."
)).
toUtf8
();
rspData
=
QString
::
fromLocal8Bit
(
ErrorMsgJson
).
arg
(
FM_API_ERROR
).
arg
(
QString
::
fromLocal8Bit
(
"未设置门店信息,不能进行支付."
)).
toUtf8
();
}
else
{
}
else
{
jsonObj
[
PosProps
.
StoreId
]
=
storeInfo
.
storeId
();
jsonObj
[
PosProps
.
StoreId
]
=
storeInfo
.
storeId
();
#ifdef FM_DEBUG
jsonObj
[
PosProps
.
StoreId
]
=
"fm99999"
;
#endif
jsonObj
[
PosProps
.
PosId
]
=
storeInfo
.
posId
();
jsonObj
[
PosProps
.
PosId
]
=
storeInfo
.
posId
();
jsonObj
[
PosProps
.
OperatorId
]
=
storeInfo
.
operatorId
();
jsonObj
[
PosProps
.
OperatorId
]
=
storeInfo
.
operatorId
();
jsonObj
[
PosProps
.
PartnerId
]
=
FMPVipSettings
::
instance
()
->
GetPayPartnerId
();
jsonObj
[
PosProps
.
PartnerId
]
=
FMPVipSettings
::
instance
()
->
GetPayPartnerId
();
...
...
fmvip/global.h
View file @
5542399f
...
@@ -131,7 +131,7 @@ struct PP{
...
@@ -131,7 +131,7 @@ struct PP{
Paid_total_amount
=
"paid_total_amount"
;
Paid_total_amount
=
"paid_total_amount"
;
Pay_transId
=
"pay_transId"
;
Pay_transId
=
"pay_transId"
;
CouponList
=
"couponList"
;
// 代金券列表
CouponList
=
"couponList"
;
// 代金券列表
Coupon_code
=
"code"
;
// 优惠券 / 代金券编码
Coupon_code
=
"co
upon_co
de"
;
// 优惠券 / 代金券编码
Coupon_type
=
"coupon_type"
;
// 优惠券 / 代金券编码
Coupon_type
=
"coupon_type"
;
// 优惠券 / 代金券编码
Coupon_disAmount
=
"disAmount"
;
// 代金券抵扣金额
Coupon_disAmount
=
"disAmount"
;
// 代金券抵扣金额
Coupon_desc
=
"desc"
;
// 代金券描述
Coupon_desc
=
"desc"
;
// 代金券描述
...
@@ -301,7 +301,7 @@ static PropsMap PosToServerProps(PropsMapPairs, PropsMapPairs + (sizeof(PropsMap
...
@@ -301,7 +301,7 @@ static PropsMap PosToServerProps(PropsMapPairs, PropsMapPairs + (sizeof(PropsMap
// 签名字段
// 签名字段
const
static
QString
SignProps
[]
=
{
const
static
QString
SignProps
[]
=
{
PosProps
.
AppId
,
PosProps
.
AppId
,
PosProps
.
PartnerId
,
ServerProps
(
PosProps
.
PartnerId
)
,
PosProps
.
T
,
PosProps
.
T
,
ServerProps
(
PosProps
.
Fm_cmd
),
ServerProps
(
PosProps
.
Fm_cmd
),
ServerProps
(
PosProps
.
StoreId
),
ServerProps
(
PosProps
.
StoreId
),
...
...
fmvip/task/fmtask.cpp
View file @
5542399f
...
@@ -105,7 +105,7 @@ bool FMTask::sendToServer(bool isShowMsg)
...
@@ -105,7 +105,7 @@ bool FMTask::sendToServer(bool isShowMsg)
FMP_DEBUG
()
<<
__FUNCTION__
;
FMP_DEBUG
()
<<
__FUNCTION__
;
// 固定部分
// 固定部分
serverReqJsonObj
[
PosProps
.
AppId
]
=
APP_ID
;
serverReqJsonObj
[
PosProps
.
AppId
]
=
APP_ID
;
serverReqJsonObj
[
PosProps
.
PartnerId
]
=
PARTNER_ID
;
serverReqJsonObj
[
ServerProps
(
PosProps
.
PartnerId
)
]
=
PARTNER_ID
;
serverReqJsonObj
[
PosProps
.
T
]
=
QString
::
number
(
QDateTime
::
currentMSecsSinceEpoch
());
serverReqJsonObj
[
PosProps
.
T
]
=
QString
::
number
(
QDateTime
::
currentMSecsSinceEpoch
());
serverReqJsonObj
[
ServerProps
(
PosProps
.
Fm_cmd
)]
=
QString
::
number
(
FM_Type
());
serverReqJsonObj
[
ServerProps
(
PosProps
.
Fm_cmd
)]
=
QString
::
number
(
FM_Type
());
...
...
version.h
View file @
5542399f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_REVISION 0
#define VER_BUILD 2
5
#define VER_BUILD 2
6
//! Convert version numbers to string
//! Convert version numbers to string
#define _STR(S) #S
#define _STR(S) #S
...
...
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