File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 31
31
<PackageReference Include =" Magicodes.IE.Excel" Version =" 2.7.5.1" />
32
32
<PackageReference Include =" Magicodes.IE.Pdf" Version =" 2.7.5.1" />
33
33
<PackageReference Include =" Magicodes.IE.Word" Version =" 2.7.5.1" />
34
- <PackageReference Include =" MailKit" Version =" 4.4 .0" />
34
+ <PackageReference Include =" MailKit" Version =" 4.5 .0" />
35
35
<PackageReference Include =" Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version =" 6.0.29" />
36
36
<PackageReference Include =" Microsoft.AspNetCore.SignalR.StackExchangeRedis" Version =" 6.0.29" />
37
37
<PackageReference Include =" NewLife.Redis" Version =" 5.6.2024.402" />
Original file line number Diff line number Diff line change @@ -132,9 +132,9 @@ public async Task DeleteOpenAccess(DeleteOpenAccessInput input)
132
132
/// </summary>
133
133
/// <returns></returns>
134
134
[ DisplayName ( "创建密钥" ) ]
135
- public Task < string > CreateSecret ( )
135
+ public async Task < string > CreateSecret ( )
136
136
{
137
- return Task . FromResult ( Convert . ToBase64String ( Guid . NewGuid ( ) . ToByteArray ( ) ) [ ..^ 2 ] ) ;
137
+ return await Task . FromResult ( Convert . ToBase64String ( Guid . NewGuid ( ) . ToByteArray ( ) ) [ ..^ 2 ] ) ;
138
138
}
139
139
140
140
/// <summary>
@@ -143,9 +143,9 @@ public Task<string> CreateSecret()
143
143
/// <param name="accessKey"></param>
144
144
/// <returns></returns>
145
145
[ NonAction ]
146
- public Task < SysOpenAccess > GetByKey ( string accessKey )
146
+ public async Task < SysOpenAccess > GetByKey ( string accessKey )
147
147
{
148
- return Task . FromResult (
148
+ return await Task . FromResult (
149
149
_sysCacheService . GetOrAdd ( CacheConst . KeyOpenAccess + accessKey , _ =>
150
150
{
151
151
return _sysOpenAccessRep . AsQueryable ( )
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public async Task<List<SysOrg>> GetList([FromQuery] OrgInput input)
84
84
/// </summary>
85
85
/// <param name="orgTree"></param>
86
86
/// <param name="userOrgIdList"></param>
87
- private void HandlerOrgTree ( List < SysOrg > orgTree , List < long > userOrgIdList )
87
+ private static void HandlerOrgTree ( List < SysOrg > orgTree , List < long > userOrgIdList )
88
88
{
89
89
foreach ( var org in orgTree )
90
90
{
You can’t perform that action at this time.
0 commit comments