From 500b92a07f22a7f676598304140b5bbb5608a150 Mon Sep 17 00:00:00 2001 From: FEIJINTI <83849113+FEIJINTI@users.noreply.github.com> Date: Fri, 16 Sep 2022 20:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E7=AC=94=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index 6d14e85..85ecc57 100644 --- a/utils.py +++ b/utils.py @@ -215,7 +215,7 @@ def ack_sock(send_sock:PreSocket, cmd_type: str) -> bool: :param send_sock:指定sock :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: send_sock.send(msg) except Exception as e: @@ -239,7 +239,7 @@ def done_sock(send_sock: PreSocket, cmd_type: str, result: str = '') -> bool: result = b'\xff' elif cmd_type == 'IM': 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: send_sock.send(msg) except Exception as e: