Skip to content

Commit ff17e67

Browse files
committed
modify
1 parent b739260 commit ff17e67

File tree

4 files changed

+3
-16
lines changed

4 files changed

+3
-16
lines changed

src/Senparc.CO2NET.Tests/Helpers/Strings/EncryptHelperTests.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ public void AESEncryptTest()
108108
Console.WriteLine("CEB decrypt:" + cebResult);
109109
Assert.AreEqual(encypStr, cebResult);
110110
}
111-
112-
113111
}
114112

115113
[TestMethod]
@@ -125,9 +123,6 @@ public void AESEncryptForTenpayV3Test()
125123

126124
Console.WriteLine(result);
127125
}
128-
129-
130-
131126
}
132127
#endregion
133128

src/Senparc.CO2NET.WebApi/ActionFilters/ForbiddenExternalAccessFilter.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/Senparc.CO2NET.WebApi/Register.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public static class Register
4545
public static Dictionary<Type, string> AdditionalClasses = new Dictionary<Type, string>();
4646

4747
/// <summary>
48-
/// 是否禁止外部访问
48+
/// 是否禁止外部访问,默认为 true
4949
/// </summary>
50-
public static bool ForbiddenExternalAccess = false;
50+
public static bool ForbiddenExternalAccess { get; set; } = true;
5151

5252
/// <summary>
5353
/// RegisterApiBind 执行锁

src/Senparc.CO2NET.WebApi/Senparc.CO2NET.WebApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
4-
<Version>0.2.6-preview3</Version>
4+
<Version>0.2.7-preview3</Version>
55
<LangVersion>latest</LangVersion>
66
<AssemblyName>Senparc.CO2NET.WebApi</AssemblyName>
77
<RootNamespace>Senparc.CO2NET.WebApi</RootNamespace>

0 commit comments

Comments
 (0)