v2.5.15: 接口更新,网页端登录成功的状态码由301更新为200 (#254)

This commit is contained in:
hect0x7 2024-07-11 00:03:19 +09:00 committed by GitHub
parent 99acab28d1
commit e3ac598d1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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 *

View File

@ -402,7 +402,7 @@ class JmHtmlClient(AbstractJmClient):
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 {}