mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fix: 自动战斗追加自定义干员序列化
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
// </copyright>
|
||||
#nullable enable
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using MaaWpfGui.Services;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
@@ -85,7 +86,7 @@ public class AsstCopilotTask : AsstBaseTask
|
||||
|
||||
if (UserAdditionals?.Count > 0)
|
||||
{
|
||||
taskParams["user_additional"] = JsonConvert.SerializeObject(UserAdditionals);
|
||||
taskParams["user_additional"] = new JArray(UserAdditionals.Select(JObject.FromObject));
|
||||
}
|
||||
|
||||
if (NeedNavigate)
|
||||
|
||||
Reference in New Issue
Block a user