Przeglądaj źródła

增加test数据

WuYiPei 5 lat temu
rodzic
commit
896f53e5d4
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      Controller/DetectController.py

+ 5 - 0
Controller/DetectController.py

@@ -218,8 +218,11 @@ class NotificationView(View):
                         uid=uid,
                         eventType=event_type))
                 userID_ids.append(userID_id)
+        # 是否是系统消息
+        test_str = ''
         if is_sys_msg:
             SysMsgModel.objects.bulk_create(sys_msg_list)
+            test_str = 'tesing'
         Equipment_Info.objects.bulk_create(eq_list)
 
         if is_st == '0' or is_st == '2':
@@ -232,6 +235,8 @@ class NotificationView(View):
                 elif up['push_type'] == 2:  # android jpush
                     up['do_jpush_code'] = do_jpush_code
                 up['test_or_www'] = SERVER_TYPE
+                #测试字符串
+                up['test_str'] = test_str
                 del up['push_type']
                 del up['userID_id']
                 del up['userID__NickName']