|
@@ -199,7 +199,8 @@ class DevicePushService:
|
|
|
elif push_type == 5: # android vivopush
|
|
|
result['do_vivopush_code'] = PushObject.android_vivopush(**kwargs)
|
|
|
elif push_type == 6: # android oppopush
|
|
|
- result['do_oppopush_code'] = cls.do_oppopush(**kwargs)
|
|
|
+ channel_id = 'DEVICE_REMINDER'
|
|
|
+ result['do_oppopush_code'] = cls.do_oppopush(channel_id=channel_id, **kwargs)
|
|
|
elif push_type == 7: # android meizupush
|
|
|
result['do_meizupush_code'] = PushObject.android_meizupush(**kwargs)
|
|
|
return result
|
|
@@ -404,8 +405,8 @@ class DevicePushService:
|
|
|
if response.status_code == 200:
|
|
|
return response.json()
|
|
|
|
|
|
- @classmethod
|
|
|
- def do_oppopush(cls, uid, channel, appBundleId, token_val, event_type, n_time,
|
|
|
+ @staticmethod
|
|
|
+ def do_oppopush(channel_id, uid, channel, appBundleId, token_val, event_type, n_time,
|
|
|
msg_title, msg_text):
|
|
|
"""
|
|
|
android 国内oppo APP消息提醒推送
|
|
@@ -441,6 +442,7 @@ class DevicePushService:
|
|
|
"notification": {
|
|
|
"title": msg_title,
|
|
|
"content": msg_text,
|
|
|
+ 'channel_id': channel_id
|
|
|
}
|
|
|
}
|
|
|
push_data = {
|