feat(license): 接入授权平台客户端门禁(license-v2/lease-v2)并烧入交付版信任根
This commit is contained in:
10
造价审核/app/server/license_client/__init__.py
Normal file
10
造价审核/app/server/license_client/__init__.py
Normal 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
|
||||
Reference in New Issue
Block a user