diff --git a/LMS.service/Configuration/QuartzTaskSchedulerConfig.cs b/LMS.service/Configuration/QuartzTaskSchedulerConfig.cs index 8d53bd9..af3c465 100644 --- a/LMS.service/Configuration/QuartzTaskSchedulerConfig.cs +++ b/LMS.service/Configuration/QuartzTaskSchedulerConfig.cs @@ -78,7 +78,7 @@ public static class QuartzTaskSchedulerConfig q.AddTrigger(opts => opts .ForJob(jobKey) .WithIdentity("DailyTaskTrigger", "DefaultGroup") - .WithCronSchedule("0 10 0 * * ?", x => x.InTimeZone(timeZone))); // 每天凌晨0点10分执行 + .WithCronSchedule("0 3 0 * * ?", x => x.InTimeZone(timeZone))); // 每天凌晨0点3分执行 } private static void ConfigureThirtySecondTask(IServiceCollectionQuartzConfigurator q, TimeZoneInfo timeZone) diff --git a/LMS.service/Controllers/MJPackageController.cs b/LMS.service/Controllers/MJPackageController.cs index a847ebe..873c869 100644 --- a/LMS.service/Controllers/MJPackageController.cs +++ b/LMS.service/Controllers/MJPackageController.cs @@ -40,7 +40,21 @@ namespace LMS.service.Controllers client.DefaultRequestHeaders.Add("Authorization", "Bearer sk-" + token); //model.NotifyHook = "https://lms.laitool.cn/api/MJPackage/mj/mj-notify-hook"; - string body = JsonConvert.SerializeObject(model); + string body = JsonConvert.SerializeObject(new + { + botType = model.BotType ?? "MID_JOURNEY", + prompt = model.Prompt, + base64Array = model.Base64Array, + AccountFilter = new + { + instanceId = model.AccountFilter?.InstanceId, + modes = model.AccountFilter?.Modes?.Select(m => m.ToString().ToUpperInvariant()).ToList(), + remix = model.AccountFilter?.Remix, + nijiRemix = model.AccountFilter?.NijiRemix, + remixAutoConsidered = model.AccountFilter?.RemixAutoConsidered + }, + state = model.State + }); client.Timeout = Timeout.InfiniteTimeSpan;