删除回调相关信息,使用定时轮询任务

This commit is contained in:
lq1405 2025-06-27 17:55:47 +08:00
parent 758735fefc
commit 8b0db6a4e6
2 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ namespace LMS.service.Controllers
using HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer sk-" + token);
model.NotifyHook = "https://lms.laitool.cn/api/MJPackage/mj/mj-notify-hook";
//model.NotifyHook = "https://lms.laitool.cn/api/MJPackage/mj/mj-notify-hook";
string body = JsonConvert.SerializeObject(model);
client.Timeout = Timeout.InfiniteTimeSpan;

View File

@ -76,6 +76,7 @@ namespace LMS.service.Service.MJPackage
public async Task<ActionResult> MJNotifyHookAsync(JsonElement model)
{
return new OkObjectResult(null);
try
{
string rawJson = model.GetRawText();