Commit b45ef97b by yunpeng.song

修复fm_id为null服务端不是别的问题,积分支付isusescore的字段名错误

parent b67aac97
...@@ -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();
if(err==401)
{
error=FM_API_BADJSON;
}
else{
error = FM_API_NETWORERROR; error = FM_API_NETWORERROR;
}
errorMsg = netErrInfo(err); errorMsg = netErrInfo(err);
FMP_ERROR()<<reply->error();
} }
}else{ }else{
error = FM_API_TIMEOUT; error = FM_API_TIMEOUT;
......
...@@ -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 = "isUseScore"; IsUseScore = "isusescore";
Coupons = "coupons"; Coupons = "coupons";
Transaction = "transactions"; Transaction = "transactions";
OrderAmount = "order_amount"; OrderAmount = "order_amount";
......
...@@ -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);
......
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