更新提示
添加发送log
This commit is contained in:
parent
ca955ed9ed
commit
b33291cdb8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user