diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SmartSelfCourse/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SmartSelfCourse/Index.js index 1772eb8ce..48f7fd009 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SmartSelfCourse/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SmartSelfCourse/Index.js @@ -56,8 +56,35 @@ var bootstrap = function ($, learun) { }); }}, { label: "课程名称", name: "Name", width: 100, align: "left"}, - { label: "视频", name: "VideoPath", width: 100, align: "left"}, - { label: "视频封面", name: "PicPath", width: 100, align: "left"}, + { + label: "视频", name: "VideoPath", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', + { + url: '/LR_SystemModule/Annexes/GetAnnexesFileList?folderId=' + value, + sync: true, + callback: function (_data) { + if (_data.F_FileName) { + callback('' + _data['F_FileName'] + ''); + } + } + }); + } + }, + { + label: "视频封面", name: "PicPath", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', + { + url: '/LR_SystemModule/Annexes/GetAnnexesFileList?folderId=' + value, + sync: true, + callback: function (_data) { + if (_data.F_FileName) { + callback('' + _data['F_FileName'] + ''); + } + } + }); + } }, { label: "AI分析", name: "AIContent", width: 100, align: "left"}, ], mainId:'ID', diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/AIAnalysis/aizy.py b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/AIAnalysis/aizy.py index ed19309fb..b1029be4b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/AIAnalysis/aizy.py +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/AIAnalysis/aizy.py @@ -156,7 +156,7 @@ def get_zaiyao(reportpath): "content": file_content, }, {"role": "user", - "content":"上面这个文件是一段教学音频识别出来的Json格式文件,其中bg_time键是一段话的起始时间。现拟将这段教学文字自动解析和提取教学核心内容,生成一段500字以内的文本摘要,概述教学流程(如首先,其次,接着,随后,最后),并使用mm:ss格式标注出在每段话的起始时间点位,用于帮助用户快速把握教学目标、教学内容、教学过程和教学特色。并给出3-5个教学特色关键词(可涉及教学方法、教学内容)。请你以教学评价专家的身份,帮我处理该文件。", + "content":"上面这个文件是一段教学音频识别出来的Json格式文件,其中bg_time键是一段话的起始时间。现拟将这段教学文字自动解析和提取教学核心内容,生成一段500字以内的文本摘要,概述教学流程(如首先,其次,接着,随后,最后),并使用mm:ss视频起始时间格式在每段话的开始处标注,用于帮助用户快速把握教学目标、教学内容、教学过程和教学特色。并给出3-5个教学特色关键词(可涉及教学方法、教学内容)。请你以教学评价专家的身份,帮我处理该文件。", } ] diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj index 750a3ab82..8f5292ab4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj @@ -179,9 +179,6 @@ Web.config - - PreserveNewest - Designer diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SmartEducationApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SmartEducationApi.cs index 32677e732..cd0e6850d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SmartEducationApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SmartEducationApi.cs @@ -200,7 +200,7 @@ namespace Learun.Application.WebApi.Modules parameter.StuNo = userInfo.account; parameter.CreateTime=DateTime.Now; var file = annexesFileIBLL.GetEntityByFolderId(parameter.VideoPath); - parameter.VideoPath = file.F_Id; + //parameter.VideoPath = file.F_Id; parameter.AIContent = AIAnalysis(file.F_FilePath); smartSelfCourseIBLL.SaveEntity("", parameter); return Success(parameter);