Skip to content

Commit

Permalink
Version 1.6.15
Browse files Browse the repository at this point in the history
Fix...how'd I missed these???
  • Loading branch information
mos9527 committed Mar 13, 2024
1 parent c97b0e0 commit 6c3d3d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyncm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"""
__VERSION_MAJOR__ = 1
__VERSION_MINOR__ = 6
__VERSION_PATCH__ = 14
__VERSION_PATCH__ = 15

__version__ = '%s.%s.%s' % (__VERSION_MAJOR__,__VERSION_MINOR__,__VERSION_PATCH__)

Expand Down
6 changes: 3 additions & 3 deletions pyncm/apis/#.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def GetCurrentLoginStatus():
return "/weapi/w/nuser/account/get", {}


def LoginViaCellphone(phone="", password="",passwordHash="",captcha="", ctcode=86, remeberLogin=True) -> dict:
def LoginViaCellphone(phone="", password="",passwordHash="",captcha="", ctcode=86, remeberLogin=True, session=None) -> dict:
"""PC 端 - 手机号登陆
* 若同时指定 password 和 passwordHash, 优先使用 password
Expand Down Expand Up @@ -151,7 +151,7 @@ def LoginViaCellphone(phone="", password="",passwordHash="",captcha="", ctcode=8
return {'code':200,'result':session.login_info}


def LoginViaEmail(email="", password="",passwordHash="", remeberLogin=True) -> dict:
def LoginViaEmail(email="", password="",passwordHash="", remeberLogin=True, session=None) -> dict:
"""网页端 - 邮箱登陆
* 若同时指定 password 和 passwordHash, 优先使用 password
Expand Down Expand Up @@ -256,7 +256,7 @@ def SetRegisterAccountViaCellphone(
"phone": str(cell),
}

def LoginViaAnonymousAccount(deviceId=None):
def LoginViaAnonymousAccount(deviceId=None, session=None):
'''PC 端 - 游客登陆
Args:
Expand Down

0 comments on commit 6c3d3d3

Please # to comment.