From fb5faeee819a775e546ea04a59cb152e2fa25c07 Mon Sep 17 00:00:00 2001 From: claw_bot Date: Tue, 10 Mar 2026 12:48:28 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7=E6=9C=AC?= =?UTF-8?q?=E4=BD=8D=E5=B8=81=E4=B8=BA=E7=A9=BA=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E9=BB=98=E8=AE=A4=E5=80=BC=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E5=85=BC=E5=AE=B9null=E5=92=8C=E7=A9=BA=E4=B8=A4?= =?UTF-8?q?=E7=A7=8D=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AssetManager.Services/PortfolioService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AssetManager.Services/PortfolioService.cs b/AssetManager.Services/PortfolioService.cs index 05ecfca..aa2dc1a 100644 --- a/AssetManager.Services/PortfolioService.cs +++ b/AssetManager.Services/PortfolioService.cs @@ -198,7 +198,7 @@ public class PortfolioService : IPortfolioService throw new Exception("User not found"); } - string targetCurrency = user.DefaultCurrency ?? "CNY"; + string targetCurrency = !string.IsNullOrEmpty(user.DefaultCurrency) ? user.DefaultCurrency : "CNY"; _logger.LogInformation("用户 {UserId} 默认本位币: {Currency}", userId, targetCurrency); decimal totalValueInTargetCurrency = 0; decimal totalCostInTargetCurrency = 0;