update
This commit is contained in:
parent
b004b94a9a
commit
d18b591c81
9
main.py
9
main.py
|
@ -1,6 +1,7 @@
|
|||
# coding=utf-8
|
||||
# 多线程TCP服务器
|
||||
import json
|
||||
import time
|
||||
|
||||
import pyautogui
|
||||
import socket
|
||||
|
@ -61,8 +62,8 @@ def handle_client(client_socket):
|
|||
print(data)
|
||||
if is_black(data):
|
||||
print("黑名单")
|
||||
client_socket.send(b"ACK!")
|
||||
client_socket.close()
|
||||
# client_socket.send(b"ACK!")
|
||||
# client_socket.close()
|
||||
return
|
||||
Point = data["Point"]
|
||||
x = Point[0]["X"]
|
||||
|
@ -70,8 +71,8 @@ def handle_client(client_socket):
|
|||
click_it(x, y)
|
||||
except Exception as e:
|
||||
pass
|
||||
client_socket.send(b"ACK!")
|
||||
client_socket.close()
|
||||
# client_socket.send(b"ACK!")
|
||||
# client_socket.close()
|
||||
|
||||
|
||||
# 等待连接,这里必定进入循环
|
||||
|
|
Loading…
Reference in New Issue