Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2edec64

Browse files
committed
升级sqlSugarCore版本 解决如果查找字段是关键字(例如:key)时出错的问题
处理启动后显示404无网页的问题
1 parent 75101d6 commit 2edec64

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

‎APIJSON.NET/APIJSON.NET/Controllers/HomeController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ public class HomeController : Controller
1010
{
1111
public IActionResult Index()
1212
{
13-
return Redirect("index.html");
13+
return File("./index.html", "text/html");
14+
//return Redirect("index.html");
1415
}
1516
}
1617
}

‎APIJSON.NET/APIJSON.NET/Startup.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ public void ConfigureServices(IServiceCollection services)
7070
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
7171
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
7272
{
73-
74-
app.UseAuthentication();
75-
7673
app.UseRouting();
74+
app.UseAuthentication();
75+
app.UseDefaultFiles();
7776
app.UseStaticFiles();
7877
app.UseCors(_defaultCorsPolicyName);
7978
app.UseSwagger();
@@ -84,7 +83,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
8483
});
8584
app.UseEndpoints(endpoints =>
8685
{
87-
endpoints.MapControllers();
86+
endpoints.MapDefaultControllerRoute();
87+
//endpoints.MapControllers();
8888
});
8989
app.UseJwtTokenMiddleware();
9090
DbInit.Initialize(app);

‎APIJSON.NET/APIJSONCommon/ApiJson.Common.csproj

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
5-
<Version>0.0.10</Version>
6-
<Description>0.0.10 处理别名如果为关键字的缺陷
7-
0.0.8 清理SelectTable 支持重载
8-
0.0.7 修复not in的缺陷,增加~ 不等于的支持
9-
0.0.6 增加ToSql接口,处理sql注入的情况
10-
通用查询组件</Description>
4+
<TargetFramework>netstandard2.1</TargetFramework>
5+
<Version>0.0.11</Version>
6+
<Description>
7+
0.0.11 升级sqlSugarCore版本 解决如果查找字段是关键字(例如:key)时出错的问题
8+
0.0.10 处理别名如果为关键字的缺陷
9+
0.0.8 清理SelectTable 支持重载
10+
0.0.7 修复not in的缺陷,增加~ 不等于的支持
11+
0.0.6 增加ToSql接口,处理sql注入的情况
12+
通用查询组件</Description>
1113
<PackageId>ApiJson.Common.Core</PackageId>
1214
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1315
</PropertyGroup>
@@ -20,7 +22,7 @@
2022
<ItemGroup>
2123
<PackageReference Include="AspectCore.Extensions.Reflection" Version="2.1.0" />
2224
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.4" />
23-
<PackageReference Include="sqlSugarCore" Version="5.0.0.15" />
25+
<PackageReference Include="sqlSugarCore" Version="5.0.5.5" />
2426
</ItemGroup>
2527

2628
<ItemGroup>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /