Browse Source

10112

AddValidOverTime
shanji 2 years ago
parent
commit
22e9d73776
  1. 2
      BBWY.Client/APIServices/BaseApiService.cs
  2. 3
      BBWY.Client/GlobalContext.cs
  3. 2
      BBWY.Client/Views/MainWindow.xaml

2
BBWY.Client/APIServices/BaseApiService.cs

@ -35,7 +35,7 @@ namespace BBWY.Client.APIServices
if (!headers.ContainsKey("ClientCode")) if (!headers.ContainsKey("ClientCode"))
headers.Add("ClientCode", "BBWY"); headers.Add("ClientCode", "BBWY");
if (!headers.ContainsKey("ClientVersion")) if (!headers.ContainsKey("ClientVersion"))
headers.Add("ClientVersion", "1.0.0.0"); headers.Add("ClientVersion", globalContext.ClientVersion);
if (!headers.ContainsKey("Authorization") && !string.IsNullOrEmpty(globalContext.UserToken)) if (!headers.ContainsKey("Authorization") && !string.IsNullOrEmpty(globalContext.UserToken))
headers.Add("Authorization", $"Bearer {globalContext.UserToken}"); headers.Add("Authorization", $"Bearer {globalContext.UserToken}");
if (!headers.ContainsKey("qy")) if (!headers.ContainsKey("qy"))

3
BBWY.Client/GlobalContext.cs

@ -9,6 +9,7 @@ namespace BBWY.Client
{ {
ShopServiceGroupList = new List<string>(); ShopServiceGroupList = new List<string>();
ShopServiceGroupLowerList = new List<string>(); ShopServiceGroupLowerList = new List<string>();
ClientVersion = "10112";
} }
private User user; private User user;
@ -23,6 +24,8 @@ namespace BBWY.Client
public IList<string> ShopServiceGroupLowerList { get; set; } public IList<string> ShopServiceGroupLowerList { get; set; }
public string ClientVersion { get; set; }
/// <summary> /// <summary>
/// JD客户端 /// JD客户端
/// </summary> /// </summary>

2
BBWY.Client/Views/MainWindow.xaml

@ -26,7 +26,7 @@
<!--<TextBlock Text="{Binding GlobalContext.User.TeamName}" Margin="5,0,0,0"/> <!--<TextBlock Text="{Binding GlobalContext.User.TeamName}" Margin="5,0,0,0"/>
<TextBlock Text="{Binding GlobalContext.User.Shop.Platform}" Margin="5,0,0,0"/>--> <TextBlock Text="{Binding GlobalContext.User.Shop.Platform}" Margin="5,0,0,0"/>-->
<TextBlock Text="{Binding GlobalContext.User.Shop.ShopName}" Margin="5,0,0,0"/> <TextBlock Text="{Binding GlobalContext.User.Shop.ShopName}" Margin="5,0,0,0"/>
<TextBlock Text="v10109" Margin="5,0,0,0"/> <TextBlock Text="{Binding GlobalContext.ClientVersion}" Margin="5,0,0,0"/>
</StackPanel> </StackPanel>
</Border> </Border>
<Grid Grid.Row="1"> <Grid Grid.Row="1">

Loading…
Cancel
Save