Files
puddy 9873eb1963 restore: 恢复 11-06~11-09 本地未提交改动
- libs: 新增 hr_sdk / hotel_report / dingtalk,更新 desktopauto
- controlplane-next: SDK 管理模块(controller/entity/migrations)与前端视图
- electron-shell: 插件同步、注册表、runner 调整
- plugins: XQ0035/XQ0041/XQ0042/XQ0045_XQ0046/XQ0048/XQ0076/XQ0078 等版本更新
- tests/tools: 新增 SDK 兼容性检查与打包工具(sdk_pack.py、sdk_compat_check.py)
2026-11-09 17:27:10 +08:00

24 lines
1013 B
Python

"""临时探针:只看报表/对账/导出相关接口与路由(用完即删)。"""
import os
import re
import sys
if hasattr(sys.stdout, "reconfigure"):
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
cache = os.path.join(os.environ.get("TEMP", "."), "tianque_js", "all.js")
text = open(cache, encoding="utf-8", errors="replace").read()
apis = sorted(set(re.findall(r'"(/?management/easypay/api/[A-Za-z0-9_/\-]+)"', text)))
KW = ("report", "bill", "settle", "download", "export", "tranInfo", "statis", "sum", "statement", "check", "voucher", "order")
print("### 报表/对账/导出相关接口")
for p in apis:
if any(k.lower() in p.lower() for k in KW):
print(" " + p)
routes = sorted(set(re.findall(r'path:"(/[A-Za-z0-9_/\-]{2,60})"', text)))
print(f"\n### 相关路由(共 {len(routes)} 条路由)")
for p in routes:
if any(k in p.lower() for k in ("report", "bill", "settle", "tran", "download", "statis", "check", "voucher", "order")):
print(" " + p)