|
@@ -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
|