Pārlūkot izejas kodu

修改推送数据,打印token_val

locky 1 gadu atpakaļ
vecāks
revīzija
d2a1b9a828
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      Service/PushService.py

+ 1 - 2
Service/PushService.py

@@ -522,12 +522,11 @@ class PushObject:
                           'received_at': n_time, 'event_time': n_time, 'event_type': str(event_type), 'nickname': nickname,
                           'uid': uid, 'channel': channel, 'title': msg_title, 'body': msg_text
                           }
-            LOGGER.info('荣耀推送event_type:{}'.format(event_type))
+            LOGGER.info('荣耀推送event_type:{},token_val:{}'.format(event_type, token_val))
             # 一键通话通知推送
             if int(event_type) in [606, 607]:
                 push_data = {
                     "android": {
-                        "data": json.dumps(extra_data),
                         "notification": {
                             "body": msg_text,
                             "title": msg_title,