This commit is contained in:
niannian zheng 2026-03-12 14:45:04 +08:00
parent 116216560f
commit f5d693ac66
2 changed files with 2 additions and 19 deletions

View File

@ -1,37 +1,21 @@
{ {
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:31733",
"sslPort": 44342
}
},
"profiles": { "profiles": {
"http": { "http": {
"commandName": "Project", "commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true, "launchBrowser": true,
"launchUrl": "swagger", "launchUrl": "swagger",
"applicationUrl": "http://localhost:5050",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}
}, },
"dotnetRunMessages": true, "dotnetRunMessages": true,
"applicationUrl": "http://localhost:5050" "applicationUrl": "http://localhost:5050"
}, },
"https": { "https": {
"commandName": "Project", "commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true, "launchBrowser": true,
"launchUrl": "swagger", "launchUrl": "swagger",
"applicationUrl": "https://localhost:7040;http://localhost:5050",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Production",
}
"ASPNETCORE_ENVIRONMENT": "Development",
"ConnectionStrings__Default": "server=43.167.226.216;Database=assetmanager;Uid=AssetManager;Pwd=2XpcnYGTpB5BhJyG;CharSet=utf8mb4;", "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__SecretKey": "your-strong-secret-key-here-change-in-production",
"Jwt__Issuer": "AssetManager", "Jwt__Issuer": "AssetManager",
@ -63,4 +47,3 @@
} }
} }
} }
}

View File

@ -349,7 +349,7 @@ public class MarketDataService : IMarketDataService
Symbol = symbol.ToUpper(), Symbol = symbol.ToUpper(),
AssetType = assetType.ToUpper(), AssetType = assetType.ToUpper(),
Price = Math.Round(response.Price, 8), 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, Source = source,
FetchedAt = DateTime.Now, FetchedAt = DateTime.Now,
ExpiredAt = GetCacheExpirationTime(assetType) ExpiredAt = GetCacheExpirationTime(assetType)