删除回调相关信息,使用定时轮询任务
This commit is contained in:
parent
758735fefc
commit
8b0db6a4e6
@ -39,7 +39,7 @@ namespace LMS.service.Controllers
|
|||||||
using HttpClient client = new HttpClient();
|
using HttpClient client = new HttpClient();
|
||||||
client.DefaultRequestHeaders.Add("Authorization", "Bearer sk-" + token);
|
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);
|
string body = JsonConvert.SerializeObject(model);
|
||||||
|
|
||||||
client.Timeout = Timeout.InfiniteTimeSpan;
|
client.Timeout = Timeout.InfiniteTimeSpan;
|
||||||
|
|||||||
@ -76,6 +76,7 @@ namespace LMS.service.Service.MJPackage
|
|||||||
|
|
||||||
public async Task<ActionResult> MJNotifyHookAsync(JsonElement model)
|
public async Task<ActionResult> MJNotifyHookAsync(JsonElement model)
|
||||||
{
|
{
|
||||||
|
return new OkObjectResult(null);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string rawJson = model.GetRawText();
|
string rawJson = model.GetRawText();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user