From fb614b7b54591edb1ab1cc4cc3b1fcd2d6d9262b Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期三, 19 六月 2024 15:27:09 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/DolphinEnglish

---
 ruoyi-service/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/TGoodsServiceImpl.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ruoyi-service/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/TGoodsServiceImpl.java b/ruoyi-service/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/TGoodsServiceImpl.java
index f978336..595780e 100644
--- a/ruoyi-service/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/TGoodsServiceImpl.java
+++ b/ruoyi-service/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/TGoodsServiceImpl.java
@@ -76,7 +76,7 @@
             }
             // redisson分布式锁
             RSemaphore semaphore = redissonClient.getSemaphore(key);
-            semaphore.trySetPermits(goods.getSurplus());
+            semaphore.trySetPermits(number);
             semaphore.expire(Constants.SIXTY, TimeUnit.MINUTES);
         }
         return new GoodDetailVO(goods, recipient);

--
Gitblit v1.7.1