重新按英文命名,修改成相对路径
This commit is contained in:
10
CostReview/app/server/license_client/__init__.py
Normal file
10
CostReview/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