shanji 2 years ago
parent
commit
18ada59896
  1. 2
      BBWY.Client/Views/MainWindow.xaml
  2. 12
      BBWY.Server.API/Startup.cs

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="v10078" Margin="5,0,0,0"/> <TextBlock Text="v10079" Margin="5,0,0,0"/>
</StackPanel> </StackPanel>
</Border> </Border>
<Grid Grid.Row="1"> <Grid Grid.Row="1">

12
BBWY.Server.API/Startup.cs

@ -138,12 +138,12 @@ namespace BBWY.Server.API
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, YunDingBusiness yunDingBusiness) public void Configure(IApplicationBuilder app, IWebHostEnvironment env, YunDingBusiness yunDingBusiness)
{ {
yunDingBusiness.RefreshKey(); yunDingBusiness.RefreshKey();
app.UseSwagger(c => c.SerializeAsV2 = true) //app.UseSwagger(c => c.SerializeAsV2 = true)
.UseSwaggerUI(c => // .UseSwaggerUI(c =>
{ // {
c.SwaggerEndpoint("/swagger/v1/swagger.json", "BBWY API"); // c.SwaggerEndpoint("/swagger/v1/swagger.json", "BBWY API");
c.RoutePrefix = string.Empty; // c.RoutePrefix = string.Empty;
}); // });
//if (env.IsDevelopment()) //if (env.IsDevelopment())
//{ //{

Loading…
Cancel
Save