mirror of
https://github.com/Shu-Ying/main_plugin_farm.git
synced 2026-11-06 12:40:04 +08:00
🎨 使用Python包管理和模块访问
🎨 重构数据库结构, 使用集中式服务定位器与数据库交互 🎨 更改部分代码逻辑, 减小内存消耗
This commit is contained in:
+2
-3
@@ -2,8 +2,7 @@ import json
|
||||
|
||||
from zhenxun.services.log import logger
|
||||
|
||||
from . import config
|
||||
from .request import g_pRequestManager
|
||||
from . import config, getRequestManager
|
||||
|
||||
|
||||
class CJsonManager:
|
||||
@@ -117,7 +116,7 @@ class CJsonManager:
|
||||
return False
|
||||
|
||||
async def initSignInFile(self) -> bool:
|
||||
if not await g_pRequestManager.initSignInFile():
|
||||
if not await getRequestManager().initSignInFile():
|
||||
config.g_bSignStatus = False
|
||||
return False
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user