mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
feat: complete delay messages
This commit is contained in:
@@ -61,7 +61,7 @@ void RecognizeSystem::recognize()
|
||||
continue;
|
||||
}
|
||||
|
||||
if(client->getIsUnity())
|
||||
if(client->GETTYPE() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
{
|
||||
char *read = new char[4];
|
||||
stream.readRawData(read,4);
|
||||
@@ -110,7 +110,7 @@ void RecognizeSystem::recognize()
|
||||
if (packetType == PacketType::TYPE_XMLANSWER)
|
||||
{
|
||||
|
||||
if(clientHandler->getClient()->getIsUnity())
|
||||
if(clientHandler->getClient()->GETTYPE() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
{
|
||||
data = socket->readAll();
|
||||
}
|
||||
@@ -130,7 +130,7 @@ void RecognizeSystem::recognize()
|
||||
|
||||
if(packetType == PacketType::TYPE_BIGXML)
|
||||
{
|
||||
if (clientHandler->getClient()->getIsUnity())
|
||||
if (clientHandler->getClient()->GETTYPE() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
{
|
||||
char *readBuffer = new char[4];
|
||||
socket->read(readBuffer,4);
|
||||
@@ -183,7 +183,7 @@ void RecognizeSystem::recognize()
|
||||
|
||||
if(packetType == PacketType::TYPE_FOLDER) //создание папок
|
||||
{
|
||||
if(client->getIsUnity())
|
||||
if(client->GETTYPE() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
{
|
||||
filePath = socket->readAll();
|
||||
filePath = Tools::createSharedPath(filePath);
|
||||
@@ -215,7 +215,7 @@ void RecognizeSystem::recognize()
|
||||
if (packetType == PacketType::TYPE_FILE) //выгрузка одного файла
|
||||
{
|
||||
|
||||
if(client->getIsUnity())
|
||||
if(client->GETTYPE() == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
{
|
||||
DataInfo *currentFileData = updateController->getCurrentDataInfo();
|
||||
filePath = currentFileData->path;
|
||||
@@ -443,13 +443,13 @@ void RecognizeSystem::packetTypeInit(PacketType packet,Client *client)
|
||||
{
|
||||
if(packet == PacketType::TYPE_QT)
|
||||
{
|
||||
client->setUnity(false);
|
||||
client->setUnity(TypeClientAutorization::TYPE_QT_CLIENT);
|
||||
|
||||
qDebug() << "ConnectionType isUnity: " << client->getIsUnity();
|
||||
qDebug() << "ConnectionType isUnity: " << client->GETTYPE();
|
||||
}
|
||||
else if (packet == PacketType::TYPE_UNITY)
|
||||
{
|
||||
client->setUnity(true);
|
||||
client->setUnity(TypeClientAutorization::TYPE_UNITY_CLIENT);
|
||||
//Фиксируем время входа Юнити-клиента
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user