mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fix: 仓库数据 parse 失败时返回空数据
This commit is contained in:
@@ -523,8 +523,15 @@ public class ToolboxViewModel : Screen
|
||||
return;
|
||||
}
|
||||
|
||||
var details = JObject.Parse(json);
|
||||
DepotParse(details);
|
||||
try
|
||||
{
|
||||
var details = JObject.Parse(json);
|
||||
DepotParse(details);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error("parse depot json failed,\n{str}", json, ex);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user