Skip to content

Commit

Permalink
提交
Browse files Browse the repository at this point in the history
  • Loading branch information
liufei-ereach committed Jun 5, 2024
1 parent d59bb8b commit 32e92dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/plugins/modules/iyuu/iyuu_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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()
Expand Down

0 comments on commit 32e92dd

Please sign in to comment.