diff --git a/BBWY.Client/APIServices/BaseApiService.cs b/BBWY.Client/APIServices/BaseApiService.cs index 2234c1f0..668f3b35 100644 --- a/BBWY.Client/APIServices/BaseApiService.cs +++ b/BBWY.Client/APIServices/BaseApiService.cs @@ -35,7 +35,7 @@ namespace BBWY.Client.APIServices if (!headers.ContainsKey("ClientCode")) headers.Add("ClientCode", "BBWY"); if (!headers.ContainsKey("ClientVersion")) - headers.Add("ClientVersion", "1.0.0.0"); + headers.Add("ClientVersion", globalContext.ClientVersion); if (!headers.ContainsKey("Authorization") && !string.IsNullOrEmpty(globalContext.UserToken)) headers.Add("Authorization", $"Bearer {globalContext.UserToken}"); if (!headers.ContainsKey("qy")) diff --git a/BBWY.Client/GlobalContext.cs b/BBWY.Client/GlobalContext.cs index 81286bba..f0be85bb 100644 --- a/BBWY.Client/GlobalContext.cs +++ b/BBWY.Client/GlobalContext.cs @@ -9,6 +9,7 @@ namespace BBWY.Client { ShopServiceGroupList = new List(); ShopServiceGroupLowerList = new List(); + ClientVersion = "10112"; } private User user; @@ -23,6 +24,8 @@ namespace BBWY.Client public IList ShopServiceGroupLowerList { get; set; } + public string ClientVersion { get; set; } + /// /// JD客户端 /// diff --git a/BBWY.Client/Views/MainWindow.xaml b/BBWY.Client/Views/MainWindow.xaml index 437663eb..612f61f6 100644 --- a/BBWY.Client/Views/MainWindow.xaml +++ b/BBWY.Client/Views/MainWindow.xaml @@ -26,7 +26,7 @@ - +