init
This commit is contained in:
@@ -5,15 +5,14 @@ import json
|
||||
import re
|
||||
from typing import Any, Literal, TYPE_CHECKING
|
||||
from .formula import 武器冷却惩罚
|
||||
from database.connect import BACKEND_DIR, get_redis_client
|
||||
from database.connect import get_redis_client
|
||||
from api.core.Redis import get_redis_info
|
||||
from api.utils.openapi_data import logical_skill_detail_path
|
||||
from api.utils.openapi_data import OPENAPI_CUSTOM_CN_PATH, logical_skill_detail_path
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from core.basic.character import Character
|
||||
|
||||
characterLv = 115 + 5
|
||||
OPENAPI_DIR = BACKEND_DIR / 'openapi'
|
||||
|
||||
|
||||
def _identity(value: Any) -> Any:
|
||||
@@ -22,7 +21,7 @@ def _identity(value: Any) -> Any:
|
||||
|
||||
@cache
|
||||
def _load_custom_cn() -> list[dict[str, Any]]:
|
||||
with (OPENAPI_DIR / 'custom_cn.json').open(encoding='utf-8') as f:
|
||||
with OPENAPI_CUSTOM_CN_PATH.open(encoding='utf-8') as f:
|
||||
return json.load(f)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user