|
@@ -385,10 +385,10 @@ class DevicePushService:
|
|
|
"""
|
|
|
url = 'https://api.xmpush.xiaomi.com/v3/message/regid'
|
|
|
app_secret = XMPUSH_CONFIG[appBundleId]
|
|
|
- payload = {'alert': 'Motion', 'msg': '', 'sound': 'sound.aif', 'zpush': '1',
|
|
|
- 'received_at': n_time, 'event_time': n_time, 'event_type': event_type,
|
|
|
- 'uid': uid, 'channel': channel
|
|
|
- }
|
|
|
+ # payload = {'alert': 'Motion', 'msg': '', 'sound': 'sound.aif', 'zpush': '1',
|
|
|
+ # 'received_at': n_time, 'event_time': n_time, 'event_type': event_type,
|
|
|
+ # 'uid': uid, 'channel': channel
|
|
|
+ # }
|
|
|
data = {
|
|
|
'title': msg_title,
|
|
|
'description': msg_text,
|