更新push逻辑

This commit is contained in:
murmur 2023-04-02 17:09:53 +08:00
parent 39c35f06a0
commit 8747f10fd0

View File

@ -38,7 +38,7 @@ def s2wx(title="",description="", content=""):
"""通过自建msgpusher发送至微信
当前title值无效
"""
return
# return
# 受API限制频繁发送会失败
# 拟合并发送满3条已发送超时时间10s
@ -92,7 +92,10 @@ _{datetime.datetime.now()}_
elif (not len(content)) and len(msgcache):
# 等效超时
send()
msgcache.clear()
if len(msgcache):
msgcache.pop(0)
if len(msgcache):
msgcache.pop(0)
Timer(10,s2wx).start()
pushisbusy=0
# GET 方式