diff --git a/pyncm/__init__.py b/pyncm/__init__.py index 8f86f0c..f818d83 100644 --- a/pyncm/__init__.py +++ b/pyncm/__init__.py @@ -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__) diff --git a/pyncm/apis/login.py b/pyncm/apis/login.py index c0e0327..b95e7e0 100644 --- a/pyncm/apis/login.py +++ b/pyncm/apis/login.py @@ -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 @@ -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 @@ -256,7 +256,7 @@ def SetRegisterAccountViaCellphone( "phone": str(cell), } -def LoginViaAnonymousAccount(deviceId=None): +def LoginViaAnonymousAccount(deviceId=None, session=None): '''PC 端 - 游客登陆 Args: