mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
Merge pull request #2779 from InfinityPacer/feature/push
This commit is contained in:
@@ -50,15 +50,15 @@ class WeChat:
|
|||||||
self._appid = WECHAT_APP_ID
|
self._appid = WECHAT_APP_ID
|
||||||
self._proxy = WECHAT_PROXY or "https://qyapi.weixin.qq.com"
|
self._proxy = WECHAT_PROXY or "https://qyapi.weixin.qq.com"
|
||||||
|
|
||||||
if self._corpid and self._appsecret and self._appid:
|
|
||||||
self.__get_access_token()
|
|
||||||
|
|
||||||
if self._proxy:
|
if self._proxy:
|
||||||
self._proxy = self._proxy.rstrip("/")
|
self._proxy = self._proxy.rstrip("/")
|
||||||
self._send_msg_url = f"{self._proxy}/{self._send_msg_url}"
|
self._send_msg_url = f"{self._proxy}/{self._send_msg_url}"
|
||||||
self._token_url = f"{self._proxy}/{self._token_url}"
|
self._token_url = f"{self._proxy}/{self._token_url}"
|
||||||
self._create_menu_url = f"{self._proxy}/{self._create_menu_url}"
|
self._create_menu_url = f"{self._proxy}/{self._create_menu_url}"
|
||||||
|
|
||||||
|
if self._corpid and self._appsecret and self._appid:
|
||||||
|
self.__get_access_token()
|
||||||
|
|
||||||
def get_state(self):
|
def get_state(self):
|
||||||
"""
|
"""
|
||||||
获取状态
|
获取状态
|
||||||
|
|||||||
Reference in New Issue
Block a user