소스 검색

荣耀推送

peng 1 년 전
부모
커밋
2319d69206
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Service/PushService.py

+ 1 - 1
Service/PushService.py

@@ -517,7 +517,7 @@ class PushObject:
             # 发送推送
             push_url = 'https://push-api.cloud.hihonor.com/api/v1/{}/sendMessage'.format(app_id)
             headers = {'Content-Type': 'application/json', 'Authorization': authorization_token,
-                       'timestamp': str(int(n_time) * 1000)}
+                       '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,
                           'uid': uid, 'channel': channel