修改了一个笔误

This commit is contained in:
FEIJINTI 2022-09-16 20:00:13 +08:00
parent 1dea7ed92b
commit 500b92a07f

View File

@ -215,7 +215,7 @@ def ack_sock(send_sock:PreSocket, cmd_type: str) -> bool:
:param send_sock:指定sock :param send_sock:指定sock
:return:是否发送成功 :return:是否发送成功
''' '''
msg = b'\xaa\x00\x00\x00\xd8'+(' A'+cmd_type).upper().encode('ascii')+b'\xff\xff\xff\xbb' msg = b'\xaa\x00\x00\x00\xd5'+(' A'+cmd_type).upper().encode('ascii')+b'\xff\xff\xff\xbb'
try: try:
send_sock.send(msg) send_sock.send(msg)
except Exception as e: except Exception as e:
@ -239,7 +239,7 @@ def done_sock(send_sock: PreSocket, cmd_type: str, result: str = '') -> bool:
result = b'\xff' result = b'\xff'
elif cmd_type == 'IM': elif cmd_type == 'IM':
result = result.encode('ascii') result = result.encode('ascii')
msg = b'\xaa\x00\x00\x00\xd8'+(' D'+cmd_type).upper().encode('ascii') + result + b'\xff\xff\xbb' msg = b'\xaa\x00\x00\x00\xd5'+(' D'+cmd_type).upper().encode('ascii') + result + b'\xff\xff\xbb'
try: try:
send_sock.send(msg) send_sock.send(msg)
except Exception as e: except Exception as e: