Procházet zdrojové kódy

极光一键通话铃声

peng před 1 rokem
rodič
revize
3840562b76
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Service/PushService.py

+ 2 - 2
Service/PushService.py

@@ -214,9 +214,9 @@ class PushObject:
             push = _jpush.create_push()
             push.audience = jpush.registration_id(token_val)
             if event_type in [606, 607]:
-                channel_id = 111934
+                channel_id = '111934'
             else:
-                channel_id = 1
+                channel_id = '1'
             push_data = {'alert': 'Motion', 'msg': '', 'sound': 'sound.aif', 'zpush': '1', 'uid': nickname,
                          'received_at': n_time, 'event_time': n_time, 'event_type': event_type, 'nickname': nickname,
                          'channel': channel