mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-23 11:32:21 +08:00
为开发版客户端指定不一样的UA防止服务端数据干扰
This commit is contained in:
parent
0697acd9e4
commit
89e326e69e
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user