diff --git a/app/plugins/modules/iyuu/iyuu_helper.py b/app/plugins/modules/iyuu/iyuu_helper.py index c7d802e..51f3304 100644 --- a/app/plugins/modules/iyuu/iyuu_helper.py +++ b/app/plugins/modules/iyuu/iyuu_helper.py @@ -9,7 +9,7 @@ @singleton class IyuuHelper(object): _version = "2.0.0" - _api_base = "https://api.iyuu.cn/%s" + _api_base = "https://dev.iyuu.cn/%s" _sites = {} _token = None @@ -35,11 +35,13 @@ def __request_iyuu(self, url, method="get", params=None): # 开始请求 if method == "get": ret = RequestUtils( - accept_type="application/json" + accept_type="application/json", + headers={'token': self._token} ).get_res(f"{url}", params=params) else: ret = RequestUtils( - accept_type="application/json" + accept_type="application/json", + headers={'token': self._token} ).post_res(f"{url}", data=params) if ret: result = ret.json()