Commit 779bcfc3 by xiaojing.zhang

不能实例化抽象类

parent 6f48eb12
...@@ -114,7 +114,7 @@ QJsonObject FMPRedeem::Reverse(QJsonObject request) ...@@ -114,7 +114,7 @@ QJsonObject FMPRedeem::Reverse(QJsonObject request)
return retJson; return retJson;
} }
QJsonObject FMPRedeem::Redeem(QJsonObject redeemInfo) QJsonObject FMPRedeem::Redeem(const QJsonObject& redeemInfo)
{ {
FMP_DEBUG() << "Recv redeem data: " << QJsonDocument(redeemInfo).toJson(QJsonDocument::Compact); FMP_DEBUG() << "Recv redeem data: " << QJsonDocument(redeemInfo).toJson(QJsonDocument::Compact);
_redeem_info = redeemInfo; _redeem_info = redeemInfo;
......
...@@ -29,7 +29,7 @@ public: ...@@ -29,7 +29,7 @@ public:
explicit FMPRedeem(ctkPluginContext *context); explicit FMPRedeem(ctkPluginContext *context);
virtual ~FMPRedeem(); virtual ~FMPRedeem();
QJsonObject Redeem(QJsonObject redeemInfo); //券码核销 QJsonObject Redeem(const QJsonObject& redeemInfo); //券码核销
QJsonObject Reverse(QJsonObject request); QJsonObject Reverse(QJsonObject request);
QJsonObject GetRedeemJson()const; QJsonObject GetRedeemJson()const;
......
...@@ -20,7 +20,7 @@ public: ...@@ -20,7 +20,7 @@ public:
connect(this, &FMPRedeemInterface::TriggerUninit, this, &FMPRedeemInterface::OnTriggerUninit); 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 Redeem(const QJsonObject& productsInfoObj) = 0; //券码核销
virtual QJsonObject GetRedeemJson()const = 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