Jelajahi Sumber

还原华为通知推送微瞳消息类型

locky 7 bulan lalu
induk
melakukan
b7be7f22f8
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      Service/HuaweiPushService/HuaweiPushService.py

+ 1 - 3
Service/HuaweiPushService/HuaweiPushService.py

@@ -80,8 +80,6 @@ class HuaweiPushObject:
         intent = 'intent://com.vivo.pushvideo/detail?#Intent;scheme=vpushscheme;launchFlags=0x10000000;S.uid={};S.event_type={};S.event_time={};end'.format(
             uid, event_type, n_time)
         android_notification = self.android_notification(msg_title, msg_text, intent)
-        # 微瞳消息类型暂时改为音视频通话
-        category = 'VOIP' if self.app_id == '108703647' else 'DEVICE_REMINDER'
         # 安卓配置
         android = messaging.AndroidConfig(
             data=data,
@@ -90,7 +88,7 @@ class HuaweiPushObject:
             ttl='10000s',
             bi_tag='the_sample_bi_tag_for_receipt_service',
             notification=android_notification,
-            category=category
+            category='DEVICE_REMINDER'
         )
 
         message = messaging.Message(