Przeglądaj źródła

修改单通道的推送间隔逻辑

tanghongbin 5 lat temu
rodzic
commit
faf510ca46

+ 1 - 1
AnsjerPush/local_config.py

@@ -145,4 +145,4 @@ APNS_CONFIG = {
     }
 }
 APNS_MODE = 'dev'
-REDIS_ADDRESS = '192.168.136.45'
+REDIS_ADDRESS = '127.0.0.1'

+ 1 - 1
AnsjerPush/local_settings.py

@@ -63,7 +63,7 @@ WSGI_APPLICATION = 'AnsjerPush.wsgi.application'
 # DATABASES_USER = 'ansjer'
 # DATABASES_PASS = '1234'
 DATABASE_DATA = 'AnsjerLocal'
-SERVER_HOST = '192.168.136.45'
+SERVER_HOST = '192.168.136.99'
 DATABASES_USER = 'ansjer'
 DATABASES_PASS = 'ansjer.x.x'
 

+ 1 - 1
Controller/DetectController.py

@@ -67,7 +67,7 @@ class NotificationView(View):
         else:
             utko = UidTokenObject(uidToken)
             uid = utko.UID
-        pkey = '{uid}_{channel}_ptl'.format(uid=uid, channel=channel)
+        pkey = '{uid}_{channel}_{event_type}_ptl'.format(uid=uid, event_type=event_type, channel=channel)
         # ykey = 'MUJ887NLR8K8GBM9111A_redis_qs'.format(uid=uid)
         ykey = '{uid}_redis_qs'.format(uid=uid)
         dkey = '{uid}_{channel}_{event_type}_flag'.format(uid=uid, event_type=event_type, channel=channel)

+ 1 - 1
Controller/TestDetectController.py

@@ -68,7 +68,7 @@ class NotificationView(View):
         else:
             utko = UidTokenObject(uidToken)
             uid = utko.UID
-        pkey = '{uid}_{channel}_ptl'.format(uid=uid, channel=channel)
+        pkey = '{uid}_{channel}_{event_type}_ptl'.format(uid=uid, event_type=event_type, channel=channel)
         # ykey = 'MUJ887NLR8K8GBM9111A_redis_qs'.format(uid=uid)
         ykey = '{uid}_redis_qs'.format(uid=uid)
         dkey = '{uid}_{channel}_{event_type}_flag'.format(uid=uid, event_type=event_type, channel=channel)