chenjunkai 6 years ago
parent
commit
7436671a2d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Controller/DetectController.py

+ 2 - 1
Controller/DetectController.py

@@ -287,7 +287,8 @@ class NotificationView(View):
 
         # push.notification = jpush.notification(alert="Hello, JPush!", android=android)
         # push.notification = jpush.message(msg_content=push_data, extras=push_data)
-        push.message = jpush.message('Motion', extras=push_data, title='KPNS', content_type='text')
+        push.message = jpush.message('Motion', extras=push_msg, title='KPNS', content_type='text')
+        # push.message = jpush.message('Motion', extras=push_data, title='KPNS', content_type='text')
         push.platform = jpush.all_
         try:
             res = push.send()