更新提示
添加发送log
This commit is contained in:
parent
ca955ed9ed
commit
b33291cdb8
@ -61,7 +61,7 @@ _{datetime.datetime.now()}_
|
|||||||
"description": description,
|
"description": description,
|
||||||
"content": c,
|
"content": c,
|
||||||
"token": "tt"})
|
"token": "tt"})
|
||||||
# print(res)
|
print("nmhd",res)
|
||||||
try:
|
try:
|
||||||
res = res.json()["success"]
|
res = res.json()["success"]
|
||||||
except:
|
except:
|
||||||
@ -72,6 +72,7 @@ _{datetime.datetime.now()}_
|
|||||||
"description": description,
|
"description": description,
|
||||||
"content": c,
|
"content": c,
|
||||||
"token": "tt"})
|
"token": "tt"})
|
||||||
|
print("msgpusher",s)
|
||||||
# else:
|
# else:
|
||||||
# if res["success"]:
|
# if res["success"]:
|
||||||
# return None
|
# return None
|
||||||
@ -325,8 +326,9 @@ def tt_trans(addr, data):
|
|||||||
cache[tccid].append(msg)
|
cache[tccid].append(msg)
|
||||||
save_cache(cache)
|
save_cache(cache)
|
||||||
|
|
||||||
print("终端未在线或ccid", tccid, "错误。数据已缓存,待目标终端上线后重发。")
|
t=f"目标终端{tccid.decode()}未在线。 \n数据已缓存,待目标终端上线后重发。"
|
||||||
s2wx("","",f"终端未在线或ccid{tccid} 错误。 \n数据已缓存,待目标终端上线后重发。")
|
print(t)
|
||||||
|
s2wx("","",t)
|
||||||
return 0
|
return 0
|
||||||
taddr = get_addr(tccid)
|
taddr = get_addr(tccid)
|
||||||
print("匹配在线终端为:", tccid, "<--->", taddr)
|
print("匹配在线终端为:", tccid, "<--->", taddr)
|
||||||
|
Loading…
Reference in New Issue
Block a user