Commit aed0f052 by Carwyn

1. 扫码支付添加查询接口

parent 77eccda9
......@@ -57,6 +57,20 @@ void FMVipDispatcher::doTask(const QByteArray &reqData, QByteArray &rspData)
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_QR_Pay: {
if (_ctx) {
ctkServiceReference ref =_ctx->getServiceReference<FMPePayInterface>();
......
......@@ -40,6 +40,7 @@ enum FM_TYPE {
FM_Coupon = 1009,
FM_Fund,
FM_Order_Revoke,
FM_QR_Query = 10030,
FM_QR_Pay = 10031,
FM_QR_Refund = 10041,
FM_Refund_Pay,
......
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