Commit a7493b9e by 刘帅

优化展示支付过程界面

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