소스 검색

序列化AndroidConfig加上category

locky 2 년 전
부모
커밋
e51c2b4cae
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Service/HuaweiPushService/push_admin/_message_serializer.py

+ 2 - 1
Service/HuaweiPushService/push_admin/_message_serializer.py

@@ -112,7 +112,8 @@ class MessageSerializer(json.JSONEncoder):
             'bi_tag': android_config.bi_tag,
             'fast_app_target': android_config.fast_app_target,
             'data': android_config.data,
-            'notification': MessageSerializer.encode_android_notification(android_config.notification)
+            'notification': MessageSerializer.encode_android_notification(android_config.notification),
+            'category': android_config.category
         }
         return cls.remove_null_values(result)