mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +08:00
UUID in DB client ping should uniquely identify the client machine
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include <QVersionNumber>
|
#include <QVersionNumber>
|
||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
|
#include <QSysInfo>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QStringBuilder>
|
#include <QStringBuilder>
|
||||||
|
|
||||||
@@ -168,11 +169,7 @@ namespace BlackCore
|
|||||||
CUrl pingUrl = this->getDbClientPingServiceUrl();
|
CUrl pingUrl = this->getDbClientPingServiceUrl();
|
||||||
if (pingUrl.isEmpty()) { CUrl(); }
|
if (pingUrl.isEmpty()) { CUrl(); }
|
||||||
|
|
||||||
QString uuid = this->identifier().toUuidString();
|
pingUrl.appendQuery("uuid", QSysInfo::machineUniqueId());
|
||||||
uuid.remove('{');
|
|
||||||
uuid.remove('}');
|
|
||||||
|
|
||||||
pingUrl.appendQuery("uuid", uuid);
|
|
||||||
if (type.testFlag(PingLogoff)) { pingUrl.appendQuery("logoff", "true"); }
|
if (type.testFlag(PingLogoff)) { pingUrl.appendQuery("logoff", "true"); }
|
||||||
if (type.testFlag(PingShutdown)) { pingUrl.appendQuery("shutdown", "true"); }
|
if (type.testFlag(PingShutdown)) { pingUrl.appendQuery("shutdown", "true"); }
|
||||||
if (type.testFlag(PingStarted)) { pingUrl.appendQuery("started", "true"); }
|
if (type.testFlag(PingStarted)) { pingUrl.appendQuery("started", "true"); }
|
||||||
|
|||||||
Reference in New Issue
Block a user