Commit 5542399f by NitefullWind

1. 修复签名时商户号字段错误Bug。

parent 7448cbf8
......@@ -94,6 +94,9 @@ void FMVipDispatcher::doTask(const QByteArray &reqData, QByteArray &rspData)
rspData = QString::fromLocal8Bit(ErrorMsgJson).arg(FM_API_ERROR).arg(QString::fromLocal8Bit("未设置门店信息,不能进行支付.")).toUtf8();
} else {
jsonObj[PosProps.StoreId] = storeInfo.storeId();
#ifdef FM_DEBUG
jsonObj[PosProps.StoreId] = "fm99999";
#endif
jsonObj[PosProps.PosId] = storeInfo.posId();
jsonObj[PosProps.OperatorId] = storeInfo.operatorId();
jsonObj[PosProps.PartnerId] = FMPVipSettings::instance()->GetPayPartnerId();
......
......@@ -131,7 +131,7 @@ struct PP{
Paid_total_amount= "paid_total_amount";
Pay_transId = "pay_transId";
CouponList = "couponList"; // 代金券列表
Coupon_code = "code"; // 优惠券 / 代金券编码
Coupon_code = "coupon_code"; // 优惠券 / 代金券编码
Coupon_type = "coupon_type"; // 优惠券 / 代金券编码
Coupon_disAmount = "disAmount"; // 代金券抵扣金额
Coupon_desc = "desc"; // 代金券描述
......@@ -301,7 +301,7 @@ static PropsMap PosToServerProps(PropsMapPairs, PropsMapPairs + (sizeof(PropsMap
// 签名字段
const static QString SignProps[] = {
PosProps.AppId,
PosProps.PartnerId,
ServerProps(PosProps.PartnerId),
PosProps.T,
ServerProps(PosProps.Fm_cmd),
ServerProps(PosProps.StoreId),
......
......@@ -105,7 +105,7 @@ bool FMTask::sendToServer(bool isShowMsg)
FMP_DEBUG() << __FUNCTION__;
// 固定部分
serverReqJsonObj[PosProps.AppId] = APP_ID;
serverReqJsonObj[PosProps.PartnerId] = PARTNER_ID;
serverReqJsonObj[ServerProps(PosProps.PartnerId)] = PARTNER_ID;
serverReqJsonObj[PosProps.T] = QString::number(QDateTime::currentMSecsSinceEpoch());
serverReqJsonObj[ServerProps(PosProps.Fm_cmd)] = QString::number(FM_Type());
......
......@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_BUILD 25
#define VER_BUILD 26
//! Convert version numbers to string
#define _STR(S) #S
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment