docs: update stale module-name references in comments and docstrings
Replace pre-rename references (main_router, db_store, server.py) in code comments and docstrings with their new locations (cli/router, store, cli/server, runtime). Comment-only; no behavior change. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
#
|
||||
# 安能全网门户(Electron 应用)—— 应到货物数据下载。
|
||||
#
|
||||
# 与其他站点(网页、由 main_router 用 Playwright 驱动)不同,安能是一个 Electron
|
||||
# 桌面应用:由 main_router 以调试模式启动(动态空闲端口,经 set_cdp_port 告知本模块),
|
||||
# 与其他站点(网页、由 runtime 用 Playwright 驱动)不同,安能是一个 Electron
|
||||
# 桌面应用:由 runtime 以调试模式启动(动态空闲端口,经 set_cdp_port 告知本模块),
|
||||
# 本模块通过该端口的 CDP 驱动它;「进站交接单查询」「导出下载」等右侧 tab 是
|
||||
# **独立 webContents**(远程网页),在 /json 里是独立目标。
|
||||
# 也可脱离 main_router 独立运行(此时用默认端口 9222,需已自行启动应用):
|
||||
# 也可脱离 runtime 独立运行(此时用默认端口 9222,需已自行启动应用):
|
||||
# python -m inbound_verify.sites.anneng expected # 或 actual
|
||||
#
|
||||
# 应到 = 运单信息导出(每张交接单下应到的运单明细)。整体流程:
|
||||
@@ -73,13 +73,13 @@ def with_retry(site_name, label, flow, reset, max_attempts=3):
|
||||
return False
|
||||
|
||||
|
||||
CDP_PORT = 9222 # 默认端口(独立运行(python -m inbound_verify.sites.anneng)时用);main_router 启动时会用 set_cdp_port 覆盖
|
||||
CDP_PORT = 9222 # 默认端口(独立运行(python -m inbound_verify.sites.anneng)时用);runtime 启动时会用 set_cdp_port 覆盖
|
||||
POLL_INTERVAL = 0.5
|
||||
DEFAULT_TIMEOUT = 25.0
|
||||
|
||||
|
||||
def set_cdp_port(port):
|
||||
"""由 main_router 在启动安能应用后调用,告知本模块实际使用的调试端口。"""
|
||||
"""由 runtime 在启动安能应用后调用,告知本模块实际使用的调试端口。"""
|
||||
global CDP_PORT
|
||||
CDP_PORT = int(port)
|
||||
|
||||
@@ -186,7 +186,7 @@ def find_main_page_cdp():
|
||||
|
||||
|
||||
def anneng_ready():
|
||||
"""安能主页是否就绪(供 main_router 的就绪轮询调用)。
|
||||
"""安能主页是否就绪(供 runtime 的就绪轮询调用)。
|
||||
|
||||
判据:能连上 CDP 且主页出现站点名称控件(带 title+fontsizenum 的 div)。
|
||||
连不上或未就绪一律返回 False,不抛异常(就绪轮询会反复调用)。
|
||||
|
||||
Reference in New Issue
Block a user