feat(license): 接入授权平台客户端门禁(license-v2/lease-v2)并烧入交付版信任根

This commit is contained in:
lianjianwei2024
2026-10-10 18:05:04 +08:00
parent 6de1370ce5
commit d3a805ede0
25 changed files with 3123 additions and 25 deletions

View File

@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
"""授权平台客户端(license-v2 / lease-v2)。
api_server 只 import license_client.gate 这一个入口:
import license_client.gate as license_gate
license_gate.init(DATA_DIR) # run() 启动时
license_gate.intercept(method, path, body) # do_GET / do_POST 顶部
业务侧判定用 client.can_run_safe()(门禁内部已用,业务代码一般不必再调)。
"""
from .client import LicenseClient, DEFAULT_API_BASE # noqa: F401