fix: Error occurs when re-uploading after the license expires

This commit is contained in:
fit2cloud-chenyw
2025-12-10 16:45:43 +08:00
committed by fit2cloud-chenyw
parent 2f4042edd6
commit 1669ba3ed1
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -37,6 +37,8 @@ def custom_key_builder(
# 支持属性路径格式
parts = keyExpression.split('.')
if not bound_args.arguments.get(parts[0]):
return f"{base_key}{parts[0]}"
value = bound_args.arguments[parts[0]]
for part in parts[1:]:
value = getattr(value, part)
+1
View File
@@ -51,6 +51,7 @@ async def lifespan(app: FastAPI):
SQLBotLogUtil.info("✅ SQLBot 初始化完成")
await sqlbot_xpack.core.clean_xpack_cache()
await async_model_info() # 异步加密已有模型的密钥和地址
await sqlbot_xpack.core.monitor_app(app)
yield
SQLBotLogUtil.info("SQLBot 应用关闭")