mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-28 23:46:06 +08:00
Update notify.py
修复企业微信获取变量bug
This commit is contained in:
parent
19bfd3b166
commit
abfc790d55
|
@ -214,11 +214,12 @@ def pushplus_bot(title, content):
|
||||||
|
|
||||||
def qywxapp_bot(title, content):
|
def qywxapp_bot(title, content):
|
||||||
print("\n")
|
print("\n")
|
||||||
if not QYWX_APP:
|
if not push_config.get('QYWX_APP'):
|
||||||
print("企业微信应用的QYWX_APP未设置!!\n取消推送")
|
print("企业微信应用的QYWX_APP未设置!!\n取消推送")
|
||||||
return
|
return
|
||||||
print("企业微信 应用启动")
|
print("企业微信 应用启动")
|
||||||
qywx_app_params = QYWX_APP.split(',')
|
|
||||||
|
qywx_app_params = push_config.get('QYWX_APP').split(',')
|
||||||
url='https://qyapi.weixin.qq.com/cgi-bin/gettoken'
|
url='https://qyapi.weixin.qq.com/cgi-bin/gettoken'
|
||||||
headers= {
|
headers= {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
@ -290,7 +291,7 @@ def qywxapp_bot(title, content):
|
||||||
print('推送失败!')
|
print('推送失败!')
|
||||||
|
|
||||||
def change_user_id(desp):
|
def change_user_id(desp):
|
||||||
qywx_app_params = QYWX_APP.split(',')
|
qywx_app_params = push_config.get('QYWX_APP').split(',')
|
||||||
if qywx_app_params[2]:
|
if qywx_app_params[2]:
|
||||||
userIdTmp = qywx_app_params[2].split("|")
|
userIdTmp = qywx_app_params[2].split("|")
|
||||||
userId = ""
|
userId = ""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user