Commit 8221de2b by guanghui.cui

增加支付查询接口

parent 5848c84d
......@@ -71,6 +71,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_Refund: {
QString fm_id = jsonObj[PosProps.Transaction].toObject()[PosProps.Fm_id].toString();
QString transId = jsonObj[PosProps.Transaction].toObject()[PosProps.TransId].toString();
......
......@@ -26,6 +26,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