Commit 193db418 by NitefullWind

1. 充值前必须进行会员认证。 2. 充值请求的签名加入transId字段。

parent eee0b887
...@@ -134,9 +134,9 @@ void FMVipDispatcher::onRequest(const QJsonObject &jsonObj) ...@@ -134,9 +134,9 @@ void FMVipDispatcher::onRequest(const QJsonObject &jsonObj)
} }
else if(type == Type_Pay || type == Type_Fund) { else if(type == Type_Pay || type == Type_Fund) {
requestSuccess = true; requestSuccess = true;
// 支付、充值先检查登陆状态 // 支付、充值先登陆
QJsonObject copyJsonObj(jsonObj); QJsonObject copyJsonObj(jsonObj);
if(type == Type_Fund && !isLogined()) if(type == Type_Fund)
{ {
_posReqObj["fm_cmd"] = Type_Login; _posReqObj["fm_cmd"] = Type_Login;
isLastOne = false; isLastOne = false;
......
...@@ -480,6 +480,10 @@ QString FMVipForward::sign(const QJsonObject &reqJob) const ...@@ -480,6 +480,10 @@ QString FMVipForward::sign(const QJsonObject &reqJob) const
mapData["partnerId"] = reqJob.value("partnerId").toString(); mapData["partnerId"] = reqJob.value("partnerId").toString();
mapData["t"] = reqJob.value("t").toString(); mapData["t"] = reqJob.value("t").toString();
if (reqJob["reqType"].toInt() == FM_VIP_FUND) {
mapData["transId"] = reqJob.value("transId").toString();
}
// 使用URL键值对的格式拼接 // 使用URL键值对的格式拼接
QString sb = ""; QString sb = "";
foreach(QString key , mapData.keys()) foreach(QString key , mapData.keys())
......
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