fix downloaders

This commit is contained in:
jxxghp
2024-07-02 11:00:55 +08:00
parent dfc5872087
commit c8fe6e4284
19 changed files with 311 additions and 140 deletions

View File

@@ -37,10 +37,13 @@ class WeChat:
# 企业微信创新菜单URL
_create_menu_url = "/cgi-bin/menu/create?access_token=%s&agentid=%s"
def __init__(self, corpid: str = None, appsecret: str = None, appid: str = None, proxy: str = None):
def __init__(self, corpid: str, appsecret: str, appid: str, proxy: str = None, **kwargs):
"""
初始化
"""
if not corpid or not appsecret or not appid:
logger.error("企业微信配置不完整!")
return
self._corpid = corpid
self._appsecret = appsecret
self._appid = appid