mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-13 12:22:05 +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")
|
||||
.arg(GitVer::DescribeTags())
|
||||
#ifdef NDEBUG
|
||||
.arg(mDistroName);
|
||||
#else
|
||||
.arg(mDistroName + " SparkDeveloper");
|
||||
#endif
|
||||
|
||||
// Finish all essential initialization before this.
|
||||
if(aCli)
|
||||
|
||||
Reference in New Issue
Block a user