chore: 更新配置和构建脚本

This commit is contained in:
caoxiaozhu
2026-05-18 02:53:06 +00:00
parent 9b97f456cf
commit 8814fe7dfa
15 changed files with 1592 additions and 15 deletions

View File

@@ -598,13 +598,13 @@ class ExpenseRuleRuntimeService:
return catalog
def _get_current_version(self, asset: AgentAsset) -> AgentAssetVersion | None:
current_version = str(asset.current_version or "").strip()
if not current_version:
published_version = str(asset.published_version or asset.current_version or "").strip()
if not published_version:
return None
return self.db.scalar(
select(AgentAssetVersion).where(
AgentAssetVersion.asset_id == asset.id,
AgentAssetVersion.version == current_version,
AgentAssetVersion.version == published_version,
)
)