This commit is contained in:
xyj 2023-12-07 16:38:49 +08:00
parent 76fd93c002
commit 10b65a999b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def valid(msg, client):
# Message receiving callback # Message receiving callback
def on_message(client, userdata, msg): def on_message(client, userdata, msg):
if valid(msg, client) is False: if not valid(msg, client):
return return
try: try:
origin_data = json.loads(msg.payload.decode('utf-8')) origin_data = json.loads(msg.payload.decode('utf-8'))