mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-06-22 22:23:49 +08:00
为开发版客户端指定不一样的UA防止服务端数据干扰
This commit is contained in:
@@ -48,7 +48,11 @@ SpkStore::SpkStore(bool aCli, QString &aLogPath)
|
|||||||
|
|
||||||
mUserAgentStr = QString("Spark-Store/%1 Distro/%2")
|
mUserAgentStr = QString("Spark-Store/%1 Distro/%2")
|
||||||
.arg(GitVer::DescribeTags())
|
.arg(GitVer::DescribeTags())
|
||||||
|
#ifdef NDEBUG
|
||||||
.arg(mDistroName);
|
.arg(mDistroName);
|
||||||
|
#else
|
||||||
|
.arg(mDistroName + " SparkDeveloper");
|
||||||
|
#endif
|
||||||
|
|
||||||
// Finish all essential initialization before this.
|
// Finish all essential initialization before this.
|
||||||
if(aCli)
|
if(aCli)
|
||||||
|
|||||||
Reference in New Issue
Block a user