Commit 89c1c338 by NitefullWind

1. 增加支付查询插件支持。

parent 5542399f
......@@ -82,6 +82,20 @@ void FMVipDispatcher::doTask(const QByteArray &reqData, QByteArray &rspData)
rspData = QString::fromLocal8Bit("{\"msg:\":\"支付服务不可用\"}").toUtf8();
}
break;
}
case FM_QR_QUERY: {
if (_ctx) {
ctkServiceReference ref =_ctx->getServiceReference<FMPePayInterface>();
FMPePayInterface *epay = _ctx->getService<FMPePayInterface>(ref);
epay->DockQueryRequest(reqData);
epay->StartService();
rspData = epay->DockQueryRespond();
epay->StopService();
}
else {
rspData = QString::fromLocal8Bit("{\"msg:\":\"查询服务不可用\"}").toUtf8();
}
break;
}
case FM_Coupon_Pay:{
if(_ctx){
......
......@@ -32,6 +32,7 @@ enum FM_TYPE {
FM_Final = 1007,
FM_Coupon = 1009,
FM_Order_Revoke,
FM_QR_QUERY = 10030,
FM_QR_Pay = 10031,
FM_Coupon_Pay,
FM_QR_Refund = 10041,
......
......@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_BUILD 26
#define VER_BUILD 27
//! Convert version numbers to string
#define _STR(S) #S
......
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