diff --git a/hello.py b/hello.py
index 451a397ab60af170ee3a648013533883cd97bed6..d2e47ae75b5d0eab033116e34702ee99738f3088 100644
--- a/hello.py
+++ b/hello.py
@@ -11,9 +11,9 @@ urllib3.disable_warnings()
 
 
 device_Android = 868771031984211   # 868080041007174
-# device_IOS = "B6712382-345D-4B12-343C-5F266411C4CK"    # 自己本机
+device_IOS = "B6712382-345D-4B12-343C-5F266411C4CK"    # 自己本机
 
-device_IOS = "E417C286-40A4-42F6-BDA9-AEEBD8FEC3B6"
+# device_IOS = "E417C286-40A4-42F6-BDA9-AEEBD8FEC3B6"
 city = "beijing"   # beijing
 s = requests.session()
 
@@ -153,7 +153,7 @@ def get_chapter(id):
 def get_opreaton():
     db = pymysql.connect(host='172.16.30.143', port=3306, user='work', passwd='BJQaT9VzDcuPBqkd', db='zhengxing')
     sql = "SELECT GROUP_CONCAT(distinct card_id) from api_feedoperatev2 " \
-          "where card_type = 26 and is_online = 1 and end_time >= '2019-08-13' and start_time <='2019-08-13'"
+          "where card_type = 0 and is_online = 1 and end_time >= '2019-08-13' and start_time <='2019-08-13'"
     cursor = db.cursor()
     cursor.execute(sql)
     result = cursor.fetchone()
@@ -174,14 +174,23 @@ def mysql(device_Android):
     print(l)
     return l
 
+def get_redis(device_IOS):
+    redis_client = redis.StrictRedis.from_url('redis://:ReDis!GmTx*0aN6@172.16.40.133:6379')
+    diary_recommend_key = "TS:search_recommend_diary_queue:device_id:" + str(device_IOS)
+    a = r.get(diary_recommend_key).split(",")
+    print(a)
+    return a
+
+
 if __name__ == '__main__':
-    aa = get_d()
-    print(aa)
-    a = mysql(device_IOS)
-    # for i in a:
-    #     chapter_list = get_chapter(i)
+    # aa = get_d()
+    # print(aa)
+    # a = mysql(device_IOS)
+    # # for i in a:
+    # #     chapter_list = get_chapter(i)
+    d = get_redis(device_IOS)
     b = get_opreaton()
-    c = set(a)&set(b)
+    c = set(d)&set(b)
     print(len(c))
     print(c)