Compare commits

..

No commits in common. "60e59005411f9af2462a93086a3a7ab61b4fdeb7" and "e3c97ef0b2d4dc0cc20a492954d4e6a2766a2ff5" have entirely different histories.

4 changed files with 5 additions and 10 deletions

View File

@ -53,15 +53,15 @@ namespace Learn.VideoAnalysis.Expand
{ {
// 可选:标记一下是否过期 // 可选:标记一下是否过期
if (context.Exception!=null) if (context.Exception!=null)
context.Response.Headers["Token-Expired"] = "true"; context.Response.Headers["Token-Expired"] = context.Exception.Message;
return Task.CompletedTask; return Task.CompletedTask;
}, },
OnChallenge = context => OnChallenge = context =>
{ {
//if (context.Response.Headers.ContainsKey("Token-Expired")) if (context.Response.Headers.ContainsKey("Token-Expired"))
//{ {
//} }
context.HandleResponse(); context.HandleResponse();
context.Response.StatusCode = 401; context.Response.StatusCode = 401;
context.Response.ContentType = "application/json"; context.Response.ContentType = "application/json";

View File

@ -230,7 +230,7 @@ namespace VideoAnalysisCore.AICore.GPT
} }
} }
await _workflowManager.AddTaskLog(chatRep.taskId, $"==>GPT请求失败次数过多!!!"); await _workflowManager.AddTaskLog(chatRep.taskId, $"==>GPT请求失败次数过多!!!");
throw new Exception("==>GPT请求失败次数过多!!!"); throw new Exception(DateTime.Now + "==>GPT请求失败次数过多!!!");
} }
public async Task<HttpResponseMessage> PostJsonStreamAsync( public async Task<HttpResponseMessage> PostJsonStreamAsync(

View File

@ -447,10 +447,6 @@ namespace VideoAnalysisCore.Controllers.Dto
/// 课程阶段 /// 课程阶段
/// </summary> /// </summary>
public virtual string? Stage { get; set; } public virtual string? Stage { get; set; }
/// <summary>
/// 视频id
/// </summary>
public virtual string? VideoCode { get; set; }
public virtual string? CourseLevel { get; set; } public virtual string? CourseLevel { get; set; }
/// <summary> /// <summary>
/// 视频所属云校ID /// 视频所属云校ID

View File

@ -361,7 +361,6 @@ namespace VideoAnalysisCore.Controllers
EndTime = s.EndTime, EndTime = s.EndTime,
Theme = s.Theme, Theme = s.Theme,
CloudSchoolId = s.CloudSchoolId, CloudSchoolId = s.CloudSchoolId,
VideoCode = s.TagId,
Stage = s.Stage.ToString(), Stage = s.Stage.ToString(),
CourseLevel = ((Enum)(int)(s.CourseLevel ??CourselevelTypeEnum.)).ToString(), CourseLevel = ((Enum)(int)(s.CourseLevel ??CourselevelTypeEnum.)).ToString(),
GradeId = s.GradeId.ToString(), GradeId = s.GradeId.ToString(),