1
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 23s
Docker Build & Deploy / Deploy to Production (push) Successful in 10s

This commit is contained in:
孙诚
2025-10-10 18:39:39 +08:00
parent a650d4197a
commit 626a8a2950

View File

@@ -85,7 +85,12 @@ public class NotifyController : BaseController
if (jsonObj["release"] != null)
{
var gb = jsonObj["release"]!.ToString();
var gb = jsonObj["release"]!["size"]!.ToString();
gb = decimal.TryParse(gb, out var size)
? (size / 1024M / 1024M / 1024M).ToString("0.##")
: "0";
notify += @$"
索引器:<font color='info'> {jsonObj["release"]!["indexer"]} </font>
<font color='info'> {jsonObj["release"]!["releaseGroup"]}({jsonObj["release"]!["quality"] ?? jsonObj["downloadInfo"]!["quality"]}) </font>