Compare commits
No commits in common. "60e59005411f9af2462a93086a3a7ab61b4fdeb7" and "e3c97ef0b2d4dc0cc20a492954d4e6a2766a2ff5" have entirely different histories.
60e5900541
...
e3c97ef0b2
|
|
@ -53,15 +53,15 @@ namespace Learn.VideoAnalysis.Expand
|
|||
{
|
||||
// 可选:标记一下是否过期
|
||||
if (context.Exception!=null)
|
||||
context.Response.Headers["Token-Expired"] = "true";
|
||||
context.Response.Headers["Token-Expired"] = context.Exception.Message;
|
||||
return Task.CompletedTask;
|
||||
},
|
||||
OnChallenge = context =>
|
||||
{
|
||||
//if (context.Response.Headers.ContainsKey("Token-Expired"))
|
||||
//{
|
||||
if (context.Response.Headers.ContainsKey("Token-Expired"))
|
||||
{
|
||||
|
||||
//}
|
||||
}
|
||||
context.HandleResponse();
|
||||
context.Response.StatusCode = 401;
|
||||
context.Response.ContentType = "application/json";
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ namespace VideoAnalysisCore.AICore.GPT
|
|||
}
|
||||
}
|
||||
await _workflowManager.AddTaskLog(chatRep.taskId, $"==>GPT请求失败次数过多!!!");
|
||||
throw new Exception("==>GPT请求失败次数过多!!!");
|
||||
throw new Exception(DateTime.Now + "==>GPT请求失败次数过多!!!");
|
||||
}
|
||||
|
||||
public async Task<HttpResponseMessage> PostJsonStreamAsync(
|
||||
|
|
|
|||
|
|
@ -447,10 +447,6 @@ namespace VideoAnalysisCore.Controllers.Dto
|
|||
/// 课程阶段
|
||||
/// </summary>
|
||||
public virtual string? Stage { get; set; }
|
||||
/// <summary>
|
||||
/// 视频id
|
||||
/// </summary>
|
||||
public virtual string? VideoCode { get; set; }
|
||||
public virtual string? CourseLevel { get; set; }
|
||||
/// <summary>
|
||||
/// 视频所属云校ID
|
||||
|
|
|
|||
|
|
@ -361,7 +361,6 @@ namespace VideoAnalysisCore.Controllers
|
|||
EndTime = s.EndTime,
|
||||
Theme = s.Theme,
|
||||
CloudSchoolId = s.CloudSchoolId,
|
||||
VideoCode = s.TagId,
|
||||
Stage = s.Stage.ToString(),
|
||||
CourseLevel = ((爱学蝶变层次Enum)(int)(s.CourseLevel ??CourselevelTypeEnum.无层次)).ToString(),
|
||||
GradeId = s.GradeId.ToString(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue