Skip to content

Commit 54e893e

Browse files
committed
#docker 支持#
1 parent 74a845f commit 54e893e

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

APIJSON.NET/APIJSON.NET/APIJSON.NET.csproj

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,20 @@
44
<TargetFramework>netcoreapp2.1</TargetFramework>
55
</PropertyGroup>
66

7+
<ItemGroup>
8+
<None Remove="Dockerfile" />
9+
</ItemGroup>
10+
11+
<ItemGroup>
12+
<Content Include="Dockerfile">
13+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
14+
</Content>
15+
</ItemGroup>
16+
717
<ItemGroup>
818
<PackageReference Include="AspectCore.Extensions.Reflection" Version="0.7.0" />
919
<PackageReference Include="Microsoft.AspNetCore.App" />
10-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="2.1.0" />
20+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="2.1.1" />
1121
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.0" />
1222
<PackageReference Include="MySql.Data" Version="8.0.11" />
1323
<PackageReference Include="sqlSugarCore" Version="4.6.4.9" />

APIJSON.NET/APIJSON.NET/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM microsoft/aspnetcore:latest
2+
3+
WORKDIR /app
4+
COPY . .
5+
6+
ENTRYPOINT ["dotnet", "APIJSON.NET.dll"]

APIJSON.NET/APIJSON.NET/Services/IdentityService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public string GetUserRoleName()
3232
public Role GetRole()
3333
{
3434
var role = new Role();
35-
if (string.IsNullOrEmpty(GetUserRoleName()))
35+
if (string.IsNullOrEmpty(GetUserRoleName()))//没登录默认取第一个
3636
{
3737
role = roles.FirstOrDefault();
3838

APIJSON.NET/APIJSON.NET/wwwroot/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Json在线解析</title>
4+
<title>APIJSON.NET</title>
55
<meta charset="utf-8" />
6-
<meta name="keywords" content="json,json在线解析,json格式化,json格式验证,json数组" />
7-
<meta name="description" content="一款简洁优雅的在线json解析器,可能是目前最好用的json在线查看工具" />
6+
<meta name="keywords" content="APIJSON.NET" />
7+
<meta name="description" content="APIJSON.NET" />
88
<link href="css/hint.min.css" rel="stylesheet">
99
<!-- <link href="css/diffview.css" rel="stylesheet"> -->
1010
<link href="css/loading.css" rel="stylesheet">
@@ -18,11 +18,11 @@
1818
<span class="on">APIJSON</span><span>.NET</span>
1919
</a>
2020
<span class="slogan">
21-
「也许」是最好用的JSON格式化验证工具
21+
2222
</span>
2323

2424
<div class="top-right">
25-
<a href="https://github.com/bimohxh/jsonon" target="_blank">
25+
<a href="https://github.com/liaozb/APIJSON.NET" target="_blank">
2626
已开源在 GitHub 上
2727
</a>
2828
</div>

0 commit comments

Comments
 (0)