修复课程管理缺陷

master
xiaochanghai 1 year ago
parent d19948c376
commit 313b419285
  1. 2
      Tiobon.Core.Model/Base/Ghre/Ghre_QuestionAnswer.Dto.Base.cs
  2. 2
      Tiobon.Core.Model/Models/Ghre/Ghre_QuestionAnswer.cs
  3. 2
      Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs

@ -40,7 +40,7 @@ namespace Tiobon.Core.Model.Models
/// <summary>
/// 答案内容
/// </summary>
[Display(Name = "AnswerContent"), Description("答案内容"), MaxLength(32, ErrorMessage = "答案内容 不能超过 32 个字符")]
[Display(Name = "AnswerContent"), Description("答案内容"), MaxLength(64, ErrorMessage = "答案内容 不能超过 64 个字符")]
public string AnswerContent { get; set; }
/// <summary>

@ -42,7 +42,7 @@ namespace Tiobon.Core.Model.Models
/// <summary>
/// 答案内容
/// </summary>
[Display(Name = "AnswerContent"), Description("答案内容"), MaxLength(32, ErrorMessage = "答案内容 不能超过 32 个字符")]
[Display(Name = "AnswerContent"), Description("答案内容"), MaxLength(64, ErrorMessage = "答案内容 不能超过 64 个字符")]
public string AnswerContent { get; set; }
/// <summary>

@ -582,6 +582,8 @@ namespace Tiobon.Core.Services
imgWidthPc = x.ImageWidthPc,
imgWidthApp = x.ImageWidthApp,
}).ToList();
if (!string.IsNullOrEmpty(x.QuestionContent))
x.QuestionContent = WebUtility.HtmlDecode(x.QuestionContent);
detail.content = x.QuestionContent;
x.detail = detail;
});

Loading…
Cancel
Save