更新push逻辑
This commit is contained in:
parent
39c35f06a0
commit
8747f10fd0
@ -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 方式
|
||||
|
Loading…
Reference in New Issue
Block a user