From 171388d7e8e480b02649c389e11d32837a891ffa Mon Sep 17 00:00:00 2001 From: Putoo <290555932@qq.com> Date: Tue, 14 Jul 2026 17:51:41 +0800 Subject: [PATCH] 1212 --- .../Services/Service/Goods/GameGoodsService.cs | 10 ++++++---- Web/src/components/Page/Footer.vue | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Service/Application.Domain/Services/Service/Goods/GameGoodsService.cs b/Service/Application.Domain/Services/Service/Goods/GameGoodsService.cs index 8485291..624dd39 100644 --- a/Service/Application.Domain/Services/Service/Goods/GameGoodsService.cs +++ b/Service/Application.Domain/Services/Service/Goods/GameGoodsService.cs @@ -209,7 +209,7 @@ public class GameGoodsService(ISqlSugarClient DbClient, IRedisCache redis) : IGa private async Task GetUserDrugLockTime(string userId, int goodsId) { long result = 0; - string key = string.Format(UserCache.BaseCacheKey, "UserDrug", $"Lock:{userId}_{goodsId}"); + string key = string.Format(UserCache.BaseCacheKeys, "UserDrug", $"Lock:{userId}_{goodsId}"); if (await redis.ExistsAsync(key)) { long end = await redis.GetAsync(key); @@ -225,7 +225,7 @@ public class GameGoodsService(ISqlSugarClient DbClient, IRedisCache redis) : IGa if (time > 0) { long end = TimeExtend.GetTimeStampSeconds + time; - string key = string.Format(UserCache.BaseCacheKey, "UserDrug", $"Lock:{userId}_{goodsId}"); + string key = string.Format(UserCache.BaseCacheKeys, "UserDrug", $"Lock:{userId}_{goodsId}"); await redis.SetAsync(key, end, time); } } @@ -235,7 +235,8 @@ public class GameGoodsService(ISqlSugarClient DbClient, IRedisCache redis) : IGa int result = 0; if (!string.IsNullOrEmpty(scene)) { - string key = string.Format(UserCache.BaseCacheKey, "UserDrug", $"Count:{scene}:{userId}_{goodsId}"); + string maiId = $"Count:{scene}:{userId}_{goodsId}"; + string key = string.Format(UserCache.BaseCacheKeys, "UserDrug", maiId); if (await redis.ExistsAsync(key)) { result = await redis.GetAsync(key); @@ -251,7 +252,8 @@ public class GameGoodsService(ISqlSugarClient DbClient, IRedisCache redis) : IGa { var count = await GetUserDrugLockCount(userId, goodsId, scene); count += 1; - string key = string.Format(UserCache.BaseCacheKey, "UserDrug", $"Count:{scene}:{userId}_{goodsId}"); + string maiId = $"Count:{scene}:{userId}_{goodsId}"; + string key = string.Format(UserCache.BaseCacheKeys, "UserDrug",maiId); await redis.SetAsync(key, count, 43200); } } diff --git a/Web/src/components/Page/Footer.vue b/Web/src/components/Page/Footer.vue index 22ffc3a..d5fb317 100644 --- a/Web/src/components/Page/Footer.vue +++ b/Web/src/components/Page/Footer.vue @@ -11,7 +11,7 @@
小G报时({{ timeTips }})
-

官方QQ群:931835791

+

官方QQ群:238938639