Skip to content

Commit e3ac598

Browse files
authored
v2.5.15: 接口更新,网页端登录成功的状态码由301更新为200 (#254)
1 parent 99acab2 commit e3ac598

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/jmcomic/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 被依赖方 <--- 使用方
33
# config <--- entity <--- toolkit <--- client <--- option <--- downloader
44

5-
__version__ = '2.5.14'
5+
__version__ = '2.5.15'
66

77
from .api import *
88
from .jm_plugin import *

src/jmcomic/jm_client_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def login(self,
402402
allow_redirects=False,
403403
)
404404

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

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

0 commit comments

Comments
 (0)