Commit 1f28883d by lei

1

parent 1be0b88e
...@@ -18,8 +18,8 @@ class RedisConnSingleton(object): ...@@ -18,8 +18,8 @@ class RedisConnSingleton(object):
:param kwargs: :param kwargs:
""" """
if cls._instance is None: if cls._instance is None:
cls._instance = redis.ConnectionPool(max_connections=1000, host='42.194.143.229', port=6379, db=0, cls._instance = redis.ConnectionPool(max_connections=1000, host='45.207.61.22', port=6379, db=0,
password='a123456,a') password='Aa123456.')
return cls._instance return cls._instance
...@@ -34,8 +34,8 @@ class RedisConnectionPoolSingleton(object): ...@@ -34,8 +34,8 @@ class RedisConnectionPoolSingleton(object):
:param kwargs: :param kwargs:
""" """
if cls._instance is None: if cls._instance is None:
cls._instance = ConnectionPool(max_connections=1000, host='42.194.143.229', port=6379, db=0, cls._instance = ConnectionPool(max_connections=1000, host='45.207.61.22', port=6379, db=0,
password='a123456,a') password='Aa123456.')
return cls._instance return cls._instance
......
...@@ -70,7 +70,7 @@ async def main(): ...@@ -70,7 +70,7 @@ async def main():
page = cur_pages[0] page = cur_pages[0]
await page.goto('https://discord.com/channels/@me') await page.goto('https://discord.com/channels/@me')
await login(page) await login(page)
time.sleep(20) await asyncio.sleep(20)
# 测试文字 # 测试文字
test_title = '你好你好你好222' test_title = '你好你好你好222'
# 插入文本 # 插入文本
...@@ -83,6 +83,8 @@ async def main(): ...@@ -83,6 +83,8 @@ async def main():
bubbles: true, cancelable: true, keyCode: 49 bubbles: true, cancelable: true, keyCode: 49
}); });
document.body.dispatchEvent(ke); document.body.dispatchEvent(ke);
console.log('--------通过---------------------------')
}''', element, test_title) }''', element, test_title)
logger.info('成功') logger.info('成功')
# 回车 # 回车
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment