Browse Source

通过推送开关修改ai推送时间间隔,对mqtt发送失败不作处理

locky 3 years ago
parent
commit
24307e6360
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Controller/DetectControllerV2.py

+ 4 - 3
Controller/DetectControllerV2.py

@@ -170,9 +170,10 @@ class DetectControllerViewV2(View):
                             'IntervalTime': interval
                         }
                     }
-                    req_success = CommonService.req_publish_mqtt_msg(uid, topic_name, msg)
-                    if not req_success:
-                        return response.json(10044)
+                    CommonService.req_publish_mqtt_msg(uid, topic_name, msg)
+                    # req_success = CommonService.req_publish_mqtt_msg(uid, topic_name, msg)
+                    # if not req_success:
+                    #     return response.json(10044)
 
             uid_set_qs = UidSetModel.objects.filter(uid=uid)
             if uid_set_qs.exists():