Commit f42b41d8 by xiaojing.zhang Committed by Carwyn

不能实例化抽象类

parent 64c95024
......@@ -114,7 +114,7 @@ QJsonObject FMPRedeem::Reverse(QJsonObject request)
return retJson;
}
QJsonObject FMPRedeem::Redeem(QJsonObject redeemInfo)
QJsonObject FMPRedeem::Redeem(const QJsonObject& redeemInfo)
{
FMP_DEBUG() << "Recv redeem data: " << QJsonDocument(redeemInfo).toJson(QJsonDocument::Compact);
_redeem_info = redeemInfo;
......@@ -476,4 +476,4 @@ QByteArray FMPRedeem::CheckSendArray(QByteArray &jsonArray)
QByteArray array(tmpBuf);
return array;
}
\ No newline at end of file
}
......@@ -29,7 +29,7 @@ public:
explicit FMPRedeem(ctkPluginContext *context);
virtual ~FMPRedeem();
QJsonObject Redeem(QJsonObject redeemInfo); //券码核销
QJsonObject Redeem(const QJsonObject& redeemInfo); //券码核销
QJsonObject Reverse(QJsonObject request);
QJsonObject GetRedeemJson()const;
......
......@@ -20,7 +20,7 @@ public:
connect(this, &FMPRedeemInterface::TriggerUninit, this, &FMPRedeemInterface::OnTriggerUninit);
}
virtual QJsonObject Redeem(const QJsonArray& productsInfo) = 0; //券码核销
//virtual QJsonObject Redeem(const QJsonArray& productsInfo) = 0; //券码核销
virtual QJsonObject Redeem(const QJsonObject& productsInfoObj) = 0; //券码核销
virtual QJsonObject Reverse(QJsonObject request) = 0; //卡券冲正
virtual QJsonObject GetRedeemJson()const = 0;
......
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