更新 NotifyController 类,修正 JSON 对象转换方式,将 ToObject<string>() 方法改为 ToString(),以提高代码的准确性和可读性。
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user