Explorar o código

修改通用发布MQTT消息函数

locky %!s(int64=3) %!d(string=hai) anos
pai
achega
a3acf044b4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: