From e04f81915e100107eca5fe16ba44898f3a0dbd55 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 04 七月 2020 18:48:06 +0800
Subject: [PATCH] redis指定数据库

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserAccountServiceImpl.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserAccountServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserAccountServiceImpl.java
index 2f030c6..b29eca8 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserAccountServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserAccountServiceImpl.java
@@ -846,7 +846,7 @@
 
         // 閲囩敤redis浜嬪姟闃叉涓�涓墜鏈哄彿澶氭娉ㄥ唽闂
         String watchKey = StringUtil.Md5("REGISTER:" + phone);
-        Jedis jedis = jedisPool.getResource();
+        Jedis jedis = redisManager.getJedis();
         try {
             jedis.watch(watchKey);
             if (jedis.get(watchKey) != null && Integer.parseInt(jedis.get(watchKey)) > 1)
@@ -944,7 +944,7 @@
 
         // 閲囩敤redis浜嬪姟闃叉涓�涓墜鏈哄彿澶氭娉ㄥ唽闂
         String watchKey = StringUtil.Md5("REGISTER:" + phone);
-        Jedis jedis = jedisPool.getResource();
+        Jedis jedis = redisManager.getJedis();
         try {
             jedis.watch(watchKey);
             if (jedis.get(watchKey) != null && Integer.parseInt(jedis.get(watchKey)) > 1)
@@ -1007,7 +1007,7 @@
 
         // 閲囩敤redis浜嬪姟闃叉涓�涓井淇″彿澶氭娉ㄥ唽闂
         String watchKey = StringUtil.Md5("REGISTER:" + weiXinUser.getUnionid());
-        Jedis jedis = jedisPool.getResource();
+        Jedis jedis = redisManager.getJedis();
         try {
             jedis.watch(watchKey);
             if (jedis.get(watchKey) != null && Integer.parseInt(jedis.get(watchKey)) > 1)
@@ -1424,7 +1424,7 @@
 
         // 閲囩敤redis浜嬪姟闃叉涓�涓井淇″彿澶氭娉ㄥ唽闂
         String watchKey = StringUtil.Md5("REGISTER:" + weiXinUser.getUnionid());
-        Jedis jedis = jedisPool.getResource();
+        Jedis jedis = redisManager.getJedis();
         try {
             jedis.watch(watchKey);
             if (jedis.get(watchKey) != null && Integer.parseInt(jedis.get(watchKey)) > 1)

--
Gitblit v1.8.0