peng vor 1 Jahr
Ursprung
Commit
2319d69206
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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