作者 陈俊学

2.3.3

login登录增加
去除制表符
@@ -4,5 +4,5 @@ SERVER: @@ -4,5 +4,5 @@ SERVER:
4 reconnect_interval: 3 4 reconnect_interval: 3
5 5
6 VERSION: 6 VERSION:
7 - code: 122  
8 - name: 2.3.2  
  7 + code: 123
  8 + name: 2.3.3
@@ -107,6 +107,10 @@ class Monitor(callback.CallBack): @@ -107,6 +107,10 @@ class Monitor(callback.CallBack):
107 # self.changeLock.release() 107 # self.changeLock.release()
108 108
109 def login(self, email, password, cookie=None, user_agent=None, proxy=None, clear: bool = False): 109 def login(self, email, password, cookie=None, user_agent=None, proxy=None, clear: bool = False):
  110 + # 处理制表符,换行符
  111 + email = email.strip().strip('\r\n')
  112 + password = password.strip().strip('\r\n')
  113 + cookie = cookie.strip().strip('\r\n')
110 limit = 100 114 limit = 100
111 if self.size >= limit: 115 if self.size >= limit:
112 raise Exception("单台终端登录到达上限,%d个号" % limit) 116 raise Exception("单台终端登录到达上限,%d个号" % limit)