abiao 5 роки тому
батько
коміт
3148bbcd14
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      app/models/wx_user.rb

+ 2 - 2
app/models/wx_user.rb

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