更新 NotifyController 类,修正 JSON 对象转换方式,将 ToObject<string>() 方法改为 ToString(),以提高代码的准确性和可读性。
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 14s
Docker Build & Deploy / Deploy to Production (push) Successful in 4s

This commit is contained in:
孙诚
2025-04-22 15:27:56 +08:00
parent 3403881b2a
commit 6c443f2fde

View File

@@ -302,7 +302,7 @@ public class NotifyController : BaseController
if (jsonObj["release"] != null)
{
var gb = jsonObj["release"]!.ToObject<string>();
var gb = jsonObj["release"]!.ToString();
notify += @$"
索引器:<font color='info'> {jsonObj["release"]!["indexer"]} </font>
<font color='info'> {jsonObj["release"]!["releaseGroup"]}({jsonObj["release"]!["quality"] ?? jsonObj["downloadInfo"]!["quality"]}) </font>