增加python3.8兼容性
This commit is contained in:
parent
7d9921b026
commit
9d9cf6f768
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user