Skip to content

Commit

Permalink
v2.5.15: 接口更新,网页端登录成功的状态码由301更新为200 (hect0x7#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
hect0x7 authored Jul 10, 2024
1 parent 99acab2 commit e3ac598
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jmcomic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 被依赖方 <--- 使用方
# config <--- entity <--- toolkit <--- client <--- option <--- downloader

__version__ = '2.5.14'
__version__ = '2.5.15'

from .api import *
from .jm_plugin import *
Expand Down
2 changes: 1 addition & 1 deletion src/jmcomic/jm_client_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def login(self,
allow_redirects=False,
)

if resp.status_code != 301:
if resp.status_code != 200:
ExceptionTool.raises_resp(f'登录失败,状态码为{resp.status_code}', resp)

orig_cookies = self.get_meta_data('cookies') or {}
Expand Down

0 comments on commit e3ac598

Please sign in to comment.