Compare commits
2 Commits
e3c97ef0b2
...
60e5900541
| Author | SHA1 | Date |
|---|---|---|
|
|
60e5900541 | |
|
|
65134e9c9e |
|
|
@ -53,15 +53,15 @@ namespace Learn.VideoAnalysis.Expand
|
||||||
{
|
{
|
||||||
// 可选:标记一下是否过期
|
// 可选:标记一下是否过期
|
||||||
if (context.Exception!=null)
|
if (context.Exception!=null)
|
||||||
context.Response.Headers["Token-Expired"] = context.Exception.Message;
|
context.Response.Headers["Token-Expired"] = "true";
|
||||||
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";
|
||||||
|
|
|
||||||
|
|
@ -230,7 +230,7 @@ namespace VideoAnalysisCore.AICore.GPT
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await _workflowManager.AddTaskLog(chatRep.taskId, $"==>GPT请求失败次数过多!!!");
|
await _workflowManager.AddTaskLog(chatRep.taskId, $"==>GPT请求失败次数过多!!!");
|
||||||
throw new Exception(DateTime.Now + "==>GPT请求失败次数过多!!!");
|
throw new Exception("==>GPT请求失败次数过多!!!");
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<HttpResponseMessage> PostJsonStreamAsync(
|
public async Task<HttpResponseMessage> PostJsonStreamAsync(
|
||||||
|
|
|
||||||
|
|
@ -447,6 +447,10 @@ 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
|
||||||
|
|
|
||||||
|
|
@ -361,6 +361,7 @@ 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(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue