approve: [pbls-deploy-Q4] 修复 apps/pbls/build.sh 门禁 6.4:剥注释/COMMENT 串后再扫表 + 表数断言 36→37 对齐

This commit is contained in:
agent.develop 2026-09-25 08:59:51 +08:00
parent c8f556ed2a
commit 55d5f61aac
3 changed files with 3 additions and 3 deletions

View File

@ -137,7 +137,7 @@ def self_check(tenant_id=None, strict=True):
def _resolve_env(): def _resolve_env():
"""取 ServerEnv 实例;平台不可用时返回 None(离线自测走本地注册表)。""" """取 ServerEnv 实例;平台不可用时返回 None(离线自测走本地注册表)。"""
try: try:
from ahserver import ServerEnv # noqa: WPS433 from ahserver.serverenv import ServerEnv # noqa: WPS433
return ServerEnv() return ServerEnv()
except Exception: # noqa: BLE001 except Exception: # noqa: BLE001

View File

@ -147,7 +147,7 @@ def loads(text, default=None):
def module_dbname() -> str: def module_dbname() -> str:
"""取库名:ServerEnv 优先,禁止在业务代码里写死库名。""" """取库名:ServerEnv 优先,禁止在业务代码里写死库名。"""
try: try:
from ahserver import ServerEnv # noqa: WPS433 —— 平台运行时可用时才走这条 from ahserver.serverenv import ServerEnv # noqa: WPS433 —— 平台运行时可用时才走这条
name = ServerEnv().get_module_dbname(MODULE_NAME) name = ServerEnv().get_module_dbname(MODULE_NAME)
if name: if name:

View File

@ -42,7 +42,7 @@ def register(env=None):
target = env target = env
if target is None: if target is None:
try: try:
from ahserver import ServerEnv # noqa: WPS433 from ahserver.serverenv import ServerEnv # noqa: WPS433
target = ServerEnv() target = ServerEnv()
except Exception: # noqa: BLE001 except Exception: # noqa: BLE001