浏览代码

荣耀透传

peng 1 年之前
父节点
当前提交
b9fcad9251
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Service/PushService.py

+ 1 - 1
Service/PushService.py

@@ -519,7 +519,7 @@ class PushObject:
             headers = {'Content-Type': 'application/json', 'Authorization': authorization_token,
                        'timestamp': str(int(time.time()) * 1000)}
             extra_data = {'alert': 'Motion', 'msg': '', 'sound': 'sound.aif', 'zpush': '1',
-                          'received_at': n_time, 'event_time': n_time, 'event_type': event_type, 'nickname': nickname,
+                          '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
                           }
             push_data = {