Explorar o código

增加redis gem文件

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
04833da157
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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-wz9dtt12y12ns2b97gpd.redis.rds.aliyuncs.com",:db=>"0",:user=>"root",:password=>"Fohow123!@#")
-    redis = Redis.new(:host=>"redis://r-wz9dtt12y12ns2b97gpd.redis.rds.aliyuncs.com",:db=>"0",:user=>"root",:password=>"Fohow123!@#")
+    test_redis = Redis.new(:host=>"r-wz9dtt12y12ns2b97gpd.redis.rds.aliyuncs.com",:db=>"0",:user=>"root",:password=>"Fohow123!@#")
+    redis = Redis.new(:host=>"r-wz9dtt12y12ns2b97gpd.redis.rds.aliyuncs.com",:db=>"0",:user=>"root",:password=>"Fohow123!@#")
 
 
     #test_redis = Redis.new(url: "redis://root:8c!Beg9ocFag@r-wz9nmvnbdsek8yl476pd.redis.rds.aliyuncs.com:6379/102")