From 145a47fa8d420ae2f484c6b17fea78f25c10fecb Mon Sep 17 00:00:00 2001 From: lq1405 <2769838458@qq.com> Date: Tue, 29 Jul 2025 22:01:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AF=8F=E6=97=A5=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E7=94=A8=E6=88=B7=E7=BB=98=E5=9B=BE=E6=95=B0=E9=87=8F?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=20=E7=94=9F=E5=9B=BE=E5=8C=85=20submit=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E7=9A=84=E8=AF=B7=E6=B1=82=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Configuration/QuartzTaskSchedulerConfig.cs | 2 +- LMS.service/Controllers/MJPackageController.cs | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) 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;