From 83a08a9f1649342cce4281a5f85b2eaae60aebac Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期一, 24 三月 2025 19:14:49 +0800 Subject: [PATCH] 修改 code缓存时间 --- LifePayment/LifePayment.Application/User/AccountService.cs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/LifePayment/LifePayment.Application/User/AccountService.cs b/LifePayment/LifePayment.Application/User/AccountService.cs index 946210a..f0af87b 100644 --- a/LifePayment/LifePayment.Application/User/AccountService.cs +++ b/LifePayment/LifePayment.Application/User/AccountService.cs @@ -78,7 +78,7 @@ { await _distributedCache.SetAsync(code, res.OpenId, options: new Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions() { - AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(5) + AbsoluteExpirationRelativeToNow = TimeSpan.FromHours(24) }); } -- Gitblit v1.9.1