Browse Source

修改通用发布MQTT消息函数

locky 3 năm trước cách đây
mục cha
commit
a3acf044b4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Service/CommonService.py

+ 1 - 1
Service/CommonService.py

@@ -485,7 +485,7 @@ class CommonService:
         @param msg: 消息内容
         @return: boolean
         """
-        if not all([thing_name, topic_name, msg]):
+        if not all([thing_name, topic_name]):
             return False
 
         try: