feat: Refactor and reorganize project structure with new modules and files

- Deleted obsolete files including test scripts and configuration files to streamline the project.
- Introduced new modules for handling Douyin functionalities, including core operations, logging, and GUI components.
- Updated import paths to reflect the new module structure, enhancing code organization and maintainability.
- Added configuration files and documentation to support the new structure and improve user guidance.
This commit is contained in:
Your Name committed 2025-12-28 14:16:40 +08:00
1 parent ea7159355b
commit c67f22f76f
139 files changed
+7571 -7828

No files matched your search

+5 -5
View File
@@ -6,7 +6,7 @@ import sys
# ==== 首先配置日志系统,确保日志文件能正常写入 ==============================
try:
import douyin_logging
from douyin.logging import douyin_logging
douyin_logging.configure_logging()
except Exception:
# 日志配置失败不影响主流程,但会缺少文件日志
@@ -41,9 +41,9 @@ def _load_local_shim(mod_name: str, rel_path: str) -> None:
# 1) 先加载本地 shim 模块,确保后续 import 优先使用这些实现
_load_local_shim("douyin_text_utils", "douyin_text_utils.py")
_load_local_shim("douyin_swipe_ops", "douyin_swipe_ops.py")
_load_local_shim("douyin_reservation_ops", "douyin_reservation_ops.py")
_load_local_shim("douyin_text_utils", "douyin/utils/douyin_text_utils.py")
_load_local_shim("douyin_swipe_ops", "douyin/handlers/douyin_swipe_ops.py")
_load_local_shim("douyin_reservation_ops", "douyin/reservation/douyin_reservation_ops.py")
# 2) 再把完整逻辑所在目录追加到 sys.path,供 `douyin_fudai` 等模块导入
try:
@@ -64,7 +64,7 @@ os.environ.setdefault("DISABLE_MODEL_SOURCE_CHECK", "True")
os.environ.setdefault("GLOG_minloglevel", "2")
os.environ.setdefault("OMP_NUM_THREADS", "1")
from douyin_fudai import fudai_analyse
from douyin.core.douyin_fudai import fudai_analyse
def ensure_adb_in_path() -> None: