pengzhibo168 преди 5 години
родител
ревизия
7aaeefa80a
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      Controller/DetectController.py

+ 4 - 4
Controller/DetectController.py

@@ -80,7 +80,7 @@ class NotificationView(View):
         # 一分钟外,推送开启状态
         detect_med_type = 0  # 0推送旧机制 1存库不推送,2推送存库
         if have_pkey:
-            res_data = {'code': 0, 'msg': 'success!'}
+            res_data = {'code': 0, 'msg': 'success11111111111111!'}
             return JsonResponse(status=200, data=res_data)
 
         # 数据库读取数据
@@ -209,7 +209,7 @@ class NotificationView(View):
         Equipment_Info.objects.bulk_create(eq_list)
         if is_st == '0' or is_st == '2':
             print("is_st=0or2")
-            return JsonResponse(status=200, data={'code': 0, 'msg': 'success'})
+            return JsonResponse(status=200, data={'code': 0, 'msg': 'success2222222222'})
         elif is_st == '1':
             print("is_st=1")
             # Endpoint以杭州为例,其它Region请按实际情况填写。
@@ -395,7 +395,7 @@ class PushNotificationView(View):
             pkey = '{uid}_ptl'.format(uid=uid)
             ykey = '{uid}_redis_qs'.format(uid=uid)
             if redisObj.get_data(key=pkey):
-                res_data = {'code': 0, 'msg': 'success,!'}
+                res_data = {'code': 0, 'msg': 'success,!33333333333'}
                 return JsonResponse(status=200, data=res_data)
             else:
                 redisObj.set_data(key=pkey, val=1, expire=60)
@@ -424,7 +424,7 @@ class PushNotificationView(View):
                 bucket = oss2.Bucket(auth, 'oss-cn-shenzhen.aliyuncs.com', 'apg')
                 self.do_bulk_create_info(redis_list, n_time, channel, event_type, is_st, uid)
                 if is_st == '0' or is_st == '2':
-                    return JsonResponse(status=200, data={'code': 0, 'msg': 'success'})
+                    return JsonResponse(status=200, data={'code': 0, 'msg': 'success44444444444444444'})
                 elif is_st == '1':
                     # Endpoint以杭州为例,其它Region请按实际情况填写。
                     obj = '{uid}/{channel}/{filename}.jpeg'.format(uid=uid, channel=channel, filename=n_time)