Browse Source

增加推送fcm的time_to_live测试

chenjunkai 6 năm trước cách đây
mục cha
commit
e7f21e98f1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/Test.py

+ 1 - 1
Controller/Test.py

@@ -98,7 +98,7 @@ class Test(View):
         print(message_body)
         if push_type:
             result = push_service.notify_single_device(registration_id=registration_id, message_title=message_title,
-                                                       message_body=message_body, data_message=data)
+                                                       message_body=message_body, data_message=data,time_to_live=3600)
         else:
             result = push_service.notify_single_device(registration_id=registration_id, message_title=message_title,
                                                        message_body=message_body)