This commit is contained in:
2026-07-06 18:30:50 +08:00
parent 2b1c27c36c
commit cee25b63e1
17 changed files with 102 additions and 837 deletions
+3 -4
View File
@@ -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)