From 10733892ee3c30dfd6f3cd9a9af46f9739f16674 Mon Sep 17 00:00:00 2001 From: chenjunxue <1523825571@qq.com> Date: Wed, 2 Sep 2020 11:45:16 +0800 Subject: [PATCH] 2.3.3 login登录增加 去除制表符 --- conf/config.yaml | 4 ++-- core/monitor.py | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/conf/config.yaml b/conf/config.yaml index f9987cd..80006a7 100644 --- a/conf/config.yaml +++ b/conf/config.yaml @@ -4,5 +4,5 @@ SERVER: reconnect_interval: 3 VERSION: - code: 122 - name: 2.3.2 \ No newline at end of file + code: 123 + name: 2.3.3 \ No newline at end of file diff --git a/core/monitor.py b/core/monitor.py index 9469b13..b5a7fdb 100644 --- a/core/monitor.py +++ b/core/monitor.py @@ -107,6 +107,10 @@ class Monitor(callback.CallBack): # self.changeLock.release() def login(self, email, password, cookie=None, user_agent=None, proxy=None, clear: bool = False): + # 处理制表符,换行符 + email = email.strip().strip('\r\n') + password = password.strip().strip('\r\n') + cookie = cookie.strip().strip('\r\n') limit = 100 if self.size >= limit: raise Exception("单台终端登录到达上限,%d个号" % limit) -- libgit2 0.24.0