xubo пре 1 година
родитељ
комит
bc4a90d9ba
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      app.py
  2. 1 1
      tools/redis_pool.py

+ 2 - 2
app.py

@@ -170,7 +170,7 @@ def get_ticket(account, passwd, target_url, single_proxy):
                 # loggerKit.info(f'login info: {content}')
                 if 'token' not in content:
                     loggerKit.info(
-                        f'login account:{account}, 登录失败,正在重试!!!')
+                        f'login account:{account}, token失效,重新登录!!!')
 
                     # # 生成 2 到 6 分之间的随机等待时间
                     # wait_time = random.uniform(120, 180)
@@ -423,7 +423,7 @@ def get_ticket_order(account, passwd, target_url, single_proxy):
                 # loggerKit.info(f'login info: {content}')
                 if 'token' not in content:
                     loggerKit.info(
-                        f'login account:{account}, 登录过期,自动重新登录!!!')
+                        f'login account:{account}, 登录失效,重新登录!!!')
 
                     # # 生成 2 到 6 分之间的随机等待时间
                     # wait_time = random.uniform(120, 180)

+ 1 - 1
tools/redis_pool.py

@@ -23,7 +23,7 @@ class redis_pool:
                                                  password=config['redis']['password'],
                                                  db=config['redis']['db'],
                                                  decode_responses=True,
-                                                 max_connections=2000,
+                                                 max_connections=500,
                                                  timeout=lock_timeout)
 
     def __get_connection(self):