From b33291cdb8bdcf63b135d7169eecb0af4f93ac2d Mon Sep 17 00:00:00 2001 From: murmur Date: Mon, 27 Mar 2023 11:30:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8F=90=E7=A4=BA=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E9=80=81log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index 96b22fa..57033bf 100755 --- a/server.py +++ b/server.py @@ -61,7 +61,7 @@ _{datetime.datetime.now()}_ "description": description, "content": c, "token": "tt"}) - # print(res) + print("nmhd",res) try: res = res.json()["success"] except: @@ -72,6 +72,7 @@ _{datetime.datetime.now()}_ "description": description, "content": c, "token": "tt"}) + print("msgpusher",s) # else: # if res["success"]: # return None @@ -325,8 +326,9 @@ def tt_trans(addr, data): cache[tccid].append(msg) save_cache(cache) - print("终端未在线或ccid", tccid, "错误。数据已缓存,待目标终端上线后重发。") - s2wx("","",f"终端未在线或ccid{tccid} 错误。 \n数据已缓存,待目标终端上线后重发。") + t=f"目标终端{tccid.decode()}未在线。 \n数据已缓存,待目标终端上线后重发。" + print(t) + s2wx("","",t) return 0 taddr = get_addr(tccid) print("匹配在线终端为:", tccid, "<--->", taddr)