|
@@ -194,7 +194,8 @@ class DevicePushService:
|
|
|
huawei_push_object = HuaweiPushObject()
|
|
|
huawei_push_object.send_push_notify_message(**kwargs)
|
|
|
elif push_type == 4: # android xmpush
|
|
|
- result['do_xmpush_code'] = cls.do_xmpush(**kwargs)
|
|
|
+ channel_id = 104551
|
|
|
+ result['do_xmpush_code'] = cls.do_xmpush(channel_id=channel_id, **kwargs)
|
|
|
elif push_type == 5: # android vivopush
|
|
|
result['do_vivopush_code'] = PushObject.android_vivopush(**kwargs)
|
|
|
elif push_type == 6: # android oppopush
|
|
@@ -376,7 +377,7 @@ class DevicePushService:
|
|
|
return repr(e)
|
|
|
|
|
|
@staticmethod
|
|
|
- def do_xmpush(uid, channel, appBundleId, token_val, event_type, n_time,
|
|
|
+ def do_xmpush(channel_id, uid, channel, appBundleId, token_val, event_type, n_time,
|
|
|
msg_title, msg_text):
|
|
|
"""
|
|
|
android 国内小米APP消息提醒推送
|
|
@@ -393,6 +394,7 @@ class DevicePushService:
|
|
|
'payload': 'payload',
|
|
|
'restricted_package_name': appBundleId,
|
|
|
'registration_id': token_val,
|
|
|
+ 'extra.channel_id': channel_id
|
|
|
}
|
|
|
|
|
|
headers = {
|