Ver código fonte

修改上传日志发布mqtt接口

locky 3 anos atrás
pai
commit
39644cd026
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      AdminController/LogManagementController.py

+ 2 - 1
AdminController/LogManagementController.py

@@ -165,7 +165,8 @@ class LogManagementView(View):
 
         try:
             msg = eval(msg)
-            if not CommonService.req_publish_mqtt_msg(thing_name, topic_name, msg):
+            identification_code = thing_name[thing_name.rindex('_')+1:]
+            if not CommonService.req_publish_mqtt_msg(identification_code, topic_name, msg):
                 return response.json(10044)
             return response.json(0)
         except Exception as e: