Skip to content

Commit 6c3d3d3

Browse files
committed
Version 1.6.15
Fix...how'd I missed these???
1 parent c97b0e0 commit 6c3d3d3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyncm/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"""
3535
__VERSION_MAJOR__ = 1
3636
__VERSION_MINOR__ = 6
37-
__VERSION_PATCH__ = 14
37+
__VERSION_PATCH__ = 15
3838

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

pyncm/apis/login.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def GetCurrentLoginStatus():
102102
return "/weapi/w/nuser/account/get", {}
103103

104104

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

153153

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

259-
def LoginViaAnonymousAccount(deviceId=None):
259+
def LoginViaAnonymousAccount(deviceId=None, session=None):
260260
'''PC 端 - 游客登陆
261261
262262
Args:

0 commit comments

Comments
 (0)