mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +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 <QJsonObject>
|
||||
#include <QSysInfo>
|
||||
#include <QStringList>
|
||||
#include <QStringBuilder>
|
||||
|
||||
@@ -168,11 +169,7 @@ namespace BlackCore
|
||||
CUrl pingUrl = this->getDbClientPingServiceUrl();
|
||||
if (pingUrl.isEmpty()) { CUrl(); }
|
||||
|
||||
QString uuid = this->identifier().toUuidString();
|
||||
uuid.remove('{');
|
||||
uuid.remove('}');
|
||||
|
||||
pingUrl.appendQuery("uuid", uuid);
|
||||
pingUrl.appendQuery("uuid", QSysInfo::machineUniqueId());
|
||||
if (type.testFlag(PingLogoff)) { pingUrl.appendQuery("logoff", "true"); }
|
||||
if (type.testFlag(PingShutdown)) { pingUrl.appendQuery("shutdown", "true"); }
|
||||
if (type.testFlag(PingStarted)) { pingUrl.appendQuery("started", "true"); }
|
||||
|
||||
Reference in New Issue
Block a user