update:跟随框架升级去掉雪花id相关的代码
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using Furion;
|
||||
using Furion.DependencyInjection;
|
||||
using Furion.DistributedIDGenerator;
|
||||
using Furion.JsonSerialization;
|
||||
using Furion.Snowflake;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -105,7 +105,7 @@ namespace Ewide.Core
|
||||
bitmap.Dispose();
|
||||
ms.Dispose();
|
||||
rtnResult.repData.originalImageBase64 = Convert.ToBase64String(ms.GetBuffer()); //"data:image/jpg;base64," +
|
||||
rtnResult.repData.token = IDGenerator.NextId().ToString();
|
||||
rtnResult.repData.token = IDGen.NextID().ToString();
|
||||
|
||||
// 缓存验证码正确位置集合
|
||||
var cacheOptions = new MemoryCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(30));
|
||||
|
||||
@@ -2616,12 +2616,13 @@
|
||||
<param name="context"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Ewide.Core.XnRestfulResultProvider.OnResponseStatusCodes(Microsoft.AspNetCore.Http.HttpContext,System.Int32)">
|
||||
<member name="M:Ewide.Core.XnRestfulResultProvider.OnResponseStatusCodes(Microsoft.AspNetCore.Http.HttpContext,System.Int32,Furion.UnifyResult.UnifyResultStatusCodesOptions)">
|
||||
<summary>
|
||||
处理输出状态码
|
||||
</summary>
|
||||
<param name="context"></param>
|
||||
<param name="statusCode"></param>
|
||||
<param name="options"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Ewide.Core.XnRestfulResultProvider.OnSucceeded(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext)">
|
||||
|
||||
@@ -57,8 +57,9 @@ namespace Ewide.Core
|
||||
/// </summary>
|
||||
/// <param name="context"></param>
|
||||
/// <param name="statusCode"></param>
|
||||
/// <param name="options"></param>
|
||||
/// <returns></returns>
|
||||
public async Task OnResponseStatusCodes(HttpContext context, int statusCode)
|
||||
public async Task OnResponseStatusCodes(HttpContext context, int statusCode,UnifyResultStatusCodesOptions options)
|
||||
{
|
||||
switch (statusCode)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@ using Furion.DatabaseAccessor.Extensions;
|
||||
using Furion.DependencyInjection;
|
||||
using Furion.DynamicApiController;
|
||||
using Furion.FriendlyException;
|
||||
using Furion.Snowflake;
|
||||
using Mapster;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
Reference in New Issue
Block a user