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)