Ver Fonte

取消小米推送按钮

peng há 1 ano atrás
pai
commit
1e87c1ec72
1 ficheiros alterados com 10 adições e 10 exclusões
  1. 10 10
      Service/DevicePushService.py

+ 10 - 10
Service/DevicePushService.py

@@ -542,16 +542,16 @@ class DevicePushService:
             'extra.uid': uid,
             'extra.channel': channel,
         }
-        if event_type in [606, 607]:
-            data['extra.notification_style_type'] = 1
-            data['extra.notification_style_button_left_name'] = '接听'
-            data['extra.notification_style_button_left_notify_effect'] = 2
-            data[
-                'extra.notification_style_button_left_intent_class'] = 'com.ansjer.zccloud_a.AJ_MainView.AJ_Home.AJMainActivity'
-            data['extra.notification_style_button_right_name'] = '挂断'
-            data['extra.notification_style_button_right_notify_effect'] = 2
-            data[
-                'extra.notification_style_button_right_intent_class'] = 'com.ansjer.zccloud_a.AJ_MainView.AJ_Home.AJMainActivity'
+        # if event_type in [606, 607]:
+        #     data['extra.notification_style_type'] = 1
+        #     data['extra.notification_style_button_left_name'] = '接听'
+        #     data['extra.notification_style_button_left_notify_effect'] = 2
+        #     data[
+        #         'extra.notification_style_button_left_intent_class'] = 'com.ansjer.zccloud_a.AJ_MainView.AJ_Home.AJMainActivity'
+        #     data['extra.notification_style_button_right_name'] = '挂断'
+        #     data['extra.notification_style_button_right_notify_effect'] = 2
+        #     data[
+        #         'extra.notification_style_button_right_intent_class'] = 'com.ansjer.zccloud_a.AJ_MainView.AJ_Home.AJMainActivity'
         headers = {
             'Authorization': 'key={}'.format(app_secret)
         }