把 douyin/core/douyin_flow_control.py 4 个独立顶层函数拆成 douyin/core/douyin_flow_control_pkg/ 子包: - stage_handler (34) handle_stage_after_diagnosis 阶段后状态记录 - find_open (537) find_and_open_fudai_detail 找福袋并打开详情(最大头) - filter (85) filter_fudai_detail 配置筛选决策 - no_fudai (94) handle_no_fudai_situation 无福袋时的简单流程 原文件改为 23 行 re-export shim,4 个公共符号全部保留。 - find_and_open_fudai_detail 4 处外部引用,其他 0 处 全部不需修改。 回归: - 5 个新文件 + shim compileall 通过 - pytest 353 passed / 1 skipped - 旧 import 路径与新子包路径返回同一函数对象 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
24 lines
837 B
Python
24 lines
837 B
Python
"""douyin_flow_control - 兼容入口(保留外部 import 路径)。
|
|
|
|
实际实现位于子包 ``douyin.core.douyin_flow_control_pkg``。
|
|
本文件仅 re-export 公共符号;详见各子模块文档:
|
|
- ``douyin_flow_control_pkg.stage_handler`` handle_stage_after_diagnosis
|
|
- ``douyin_flow_control_pkg.find_open`` find_and_open_fudai_detail(最大头 520 行)
|
|
- ``douyin_flow_control_pkg.filter`` filter_fudai_detail
|
|
- ``douyin_flow_control_pkg.no_fudai`` handle_no_fudai_situation
|
|
"""
|
|
|
|
from douyin.core.douyin_flow_control_pkg import (
|
|
filter_fudai_detail,
|
|
find_and_open_fudai_detail,
|
|
handle_no_fudai_situation,
|
|
handle_stage_after_diagnosis,
|
|
)
|
|
|
|
__all__ = [
|
|
"handle_stage_after_diagnosis",
|
|
"find_and_open_fudai_detail",
|
|
"filter_fudai_detail",
|
|
"handle_no_fudai_situation",
|
|
]
|