From 7abb8796ec0ce030f34536cd91ba3af798fec939 Mon Sep 17 00:00:00 2001 From: OpenClaw Agent Date: Tue, 17 Mar 2026 08:23:31 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8DGetTotalAssets?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=96=B9=E6=B3=95=E4=BB=A5=E6=BB=A1=E8=B6=B3?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AssetManager.Services/PortfolioService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AssetManager.Services/PortfolioService.cs b/AssetManager.Services/PortfolioService.cs index b4ad364..f776cb5 100755 --- a/AssetManager.Services/PortfolioService.cs +++ b/AssetManager.Services/PortfolioService.cs @@ -426,6 +426,12 @@ public class PortfolioService : IPortfolioService }; } + // 保留同步方法作为兼容 + public TotalAssetsResponse GetTotalAssets(string userId) + { + return GetTotalAssetsAsync(userId).GetAwaiter().GetResult(); + } + public async Task GetPortfolioByIdAsync(string id, string userId) { var portfolio = _db.Queryable()