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)