From f5d693ac66f032c322e52b09e3f9776dcdb2a64d Mon Sep 17 00:00:00 2001 From: niannian zheng Date: Thu, 12 Mar 2026 14:45:04 +0800 Subject: [PATCH] fix --- .../Properties/launchSettings.json | 19 +------------------ .../Services/MarketDataService.cs | 2 +- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/AssetManager.API/Properties/launchSettings.json b/AssetManager.API/Properties/launchSettings.json index 80c0656..f4a15a2 100644 --- a/AssetManager.API/Properties/launchSettings.json +++ b/AssetManager.API/Properties/launchSettings.json @@ -1,37 +1,21 @@ { - "$schema": "http://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:31733", - "sslPort": 44342 - } - }, "profiles": { "http": { "commandName": "Project", - "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", - "applicationUrl": "http://localhost:5050", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" - } }, "dotnetRunMessages": true, "applicationUrl": "http://localhost:5050" }, "https": { "commandName": "Project", - "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", - "applicationUrl": "https://localhost:7040;http://localhost:5050", "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - "ASPNETCORE_ENVIRONMENT": "Development", + "ASPNETCORE_ENVIRONMENT": "Production", "ConnectionStrings__Default": "server=43.167.226.216;Database=assetmanager;Uid=AssetManager;Pwd=2XpcnYGTpB5BhJyG;CharSet=utf8mb4;", "Jwt__SecretKey": "your-strong-secret-key-here-change-in-production", "Jwt__Issuer": "AssetManager", @@ -62,5 +46,4 @@ "sslPort": 44342 } } -} } \ No newline at end of file diff --git a/AssetManager.Infrastructure/Services/MarketDataService.cs b/AssetManager.Infrastructure/Services/MarketDataService.cs index b440fa4..3e8dba9 100644 --- a/AssetManager.Infrastructure/Services/MarketDataService.cs +++ b/AssetManager.Infrastructure/Services/MarketDataService.cs @@ -349,7 +349,7 @@ public class MarketDataService : IMarketDataService Symbol = symbol.ToUpper(), AssetType = assetType.ToUpper(), Price = Math.Round(response.Price, 8), - PreviousClose = response.PreviousClose > 0 ? Math.Round(response.PreviousClose.Value, 8) : null, + PreviousClose = response.PreviousClose > 0 ? Math.Round(response.PreviousClose, 8) : null, Source = source, FetchedAt = DateTime.Now, ExpiredAt = GetCacheExpirationTime(assetType)