mirror of
https://github.com/Shu-Ying/main_plugin_farm.git
synced 2026-10-29 13:40:00 +08:00
🎨 使用Python包管理和模块访问
🎨 重构数据库结构, 使用集中式服务定位器与数据库交互 🎨 更改部分代码逻辑, 减小内存消耗
This commit is contained in:
+1
-5
@@ -9,8 +9,7 @@ from playwright.async_api import async_playwright
|
||||
from zhenxun.services.log import logger
|
||||
from zhenxun.utils.message import MessageUtils
|
||||
|
||||
from ..core.player.player import CPlayer
|
||||
from ..core.player.playerPool import g_pUserPool
|
||||
from ..core import CPlayer, g_pUserPool
|
||||
|
||||
|
||||
class CToolManager:
|
||||
@@ -192,6 +191,3 @@ class CToolManager:
|
||||
# 截图并保存到本地文件
|
||||
await page.screenshot(path=save, full_page=True)
|
||||
await browser.close()
|
||||
|
||||
|
||||
g_pToolManager = CToolManager()
|
||||
|
||||
Reference in New Issue
Block a user