Commit a7493b9e by 刘帅

优化展示支付过程界面

parent 3d462c58
...@@ -823,7 +823,6 @@ void QFmClient::run() ...@@ -823,7 +823,6 @@ void QFmClient::run()
CloseSocket(&_acceptedSock); CloseSocket(&_acceptedSock);
continue; continue;
} }
emit ShowUi();
QJsonObject object; QJsonObject object;
char temp_recv[MAX_BUF_LEN] = {0}; char temp_recv[MAX_BUF_LEN] = {0};
strcpy(temp_recv, _recvbuf); strcpy(temp_recv, _recvbuf);
...@@ -832,23 +831,34 @@ void QFmClient::run() ...@@ -832,23 +831,34 @@ void QFmClient::run()
if (0 > needBackup) if (0 > needBackup)
{ {
CloseSocket(&_acceptedSock); CloseSocket(&_acceptedSock);
emit HideUi();
continue; continue;
} }
int reqtype = object.value("reqtype").toInt(72);
if(reqtype == 72 || reqtype == 101)
{
emit ShowUi();
}
if (0 != Try2ConnectZhProxy()) if (0 != Try2ConnectZhProxy())
{ {
qDebug() << "connect to proxy failed"; qDebug() << "connect to proxy failed";
QLOG_ERROR() << "connect to proxy failed"; QLOG_ERROR() << "connect to proxy failed";
CloseSocket(&_acceptedSock); CloseSocket(&_acceptedSock);
if(reqtype == 72 || reqtype == 101)
{
emit HideUi(); emit HideUi();
}
continue; continue;
} }
if (0 != SendCtrlInfo2Proxy()) if (0 != SendCtrlInfo2Proxy())
{ {
CloseSocket(&_acceptedSock); CloseSocket(&_acceptedSock);
if(reqtype == 72 || reqtype == 101)
{
emit HideUi(); emit HideUi();
}
continue; continue;
} }
...@@ -860,7 +870,10 @@ void QFmClient::run() ...@@ -860,7 +870,10 @@ void QFmClient::run()
rlt = SendData2ZhProxyAndWaitRspData(); rlt = SendData2ZhProxyAndWaitRspData();
if(reqtype == 72 || reqtype == 101)
{
emit HideUi(); emit HideUi();
}
OutputDebugString(L"hide Ui"); OutputDebugString(L"hide Ui");
if (0 == rlt) if (0 == rlt)
{ {
......
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