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
FMP_INFO() << "Server Response: " << rspData;
} else {
int err = reply->error();
error = FM_API_NETWORERROR;
if(err==401)
{
error=FM_API_BADJSON;
}
else{
error = FM_API_NETWORERROR;
}
errorMsg = netErrInfo(err);
FMP_ERROR()<<reply->error();
}
}else{
error = FM_API_TIMEOUT;
......
......@@ -3,6 +3,7 @@
#include <QObject>
#include <QApplication>
#include <string>
#include <QMap>
// 商家信息
#define APP_ID "T013"
......@@ -86,7 +87,7 @@ struct PP{
CodeAmount = "codeAmount";
ScoreAmount = "scoreAmount";
IsUseScore = "isUseScore";
IsUseScore = "isusescore";
Coupons = "coupons";
Transaction = "transactions";
OrderAmount = "order_amount";
......
......@@ -15,10 +15,8 @@ void TaskFinal::packageServerReq()
p1.push_back(PosProps.Fm_id);
p1.push_back(PosProps.TransId);
foreach (QString prop , p1) {
qDebug() << prop << getPosJsonValue(prop);
serverReqJsonObj[ServerProps(prop)] = getPosJsonValue(prop);
serverReqJsonObj[ServerProps(prop)] =getPosJsonValue(prop).toString();
}
QJsonObject trans;
std::vector<QString> p2;
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