From 9d9cf6f768414e07d680c4e950c4d576071a2475 Mon Sep 17 00:00:00 2001 From: murmur Date: Wed, 22 Mar 2023 14:04:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0python3.8=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index 3aac80c..6cef7bb 100755 --- a/server.py +++ b/server.py @@ -35,7 +35,7 @@ def s2wx(title,description, content): """通过自建msgpusher发送至微信 当前title值无效 """ - return + # return # GET 方式 # res = requests.get(f"{SERVER}/push/{USERNAME}?title={title}" # f"&description={description}&content={content}&token={TOKEN}") @@ -229,9 +229,9 @@ def get_info(data): return str(x) pass sn = "-".join(list(map(h2s,data[12:17]))) - index=int.from_bytes(data[19:20]) - cnt=int.from_bytes(data[20:21]) - t=f"流水号20{sn}:[{index}/{cnt}]" + index=int.from_bytes(data[19:20],byteorder="big") + cnt=int.from_bytes(data[20:21],byteorder="big") + t=f"流水号20{sn} \n序号\[{index}/{cnt}]" print(t) s2wx("","",t)