|
|
@@ -22,8 +22,8 @@ class WxUser < ActiveRecord::Base
|
|
|
after_destroy :after_destroy
|
|
|
|
|
|
def after_update
|
|
|
- test_redis = Redis.new(url: "redis://root:Fohow123!@#@r-wz9nmvnbdsek8yl476pd.redis.rds.aliyuncs.com:6379/0")
|
|
|
- redis = Redis.new(url: "redis://root:Fohow123!@#@r-wz9nmvnbdsek8yl476pd.redis.rds.aliyuncs.com:6379/2")
|
|
|
+ test_redis = Redis.new(url: "redis://root:Fohow123!@#"+"@r-wz9nmvnbdsek8yl476pd.redis.rds.aliyuncs.com:6379/0")
|
|
|
+ redis = Redis.new(url: "redis://root:Fohow123!@#"+"@r-wz9nmvnbdsek8yl476pd.redis.rds.aliyuncs.com:6379/2")
|
|
|
userKey= format("userinfo_%d",self.id)
|
|
|
redis.del(userKey)
|
|
|
test_redis.del(userKey)
|