Commit 67df4761 authored by 黄奎's avatar 黄奎

页面修改

parent 88ced2b7
......@@ -221,8 +221,8 @@ namespace Edu.Common.Data
{
if (subItem.Contains("答案解析:") || subItem.Contains("解析:"))
{
string answerReg1 = @"答案解析";
string answerReg2 = @"解析";
string answerReg1 = @"答案解析[::]";
string answerReg2 = @"解析[::]";
Regex reg = new Regex(answerReg1);
Regex reg2 = new Regex(answerReg2);
string[] answerAnalysisArray = null;
......@@ -239,10 +239,10 @@ namespace Edu.Common.Data
model.AnswerAnalysis = answerAnalysisArray.Length > 1 ? answerAnalysisArray[1] : "";
}
}
if (subItem.Contains("答案:"))
if (subItem.Contains("答案:")|| subItem.Contains("答案:"))
{
answerObj = subItem;
var answerArray = Regex.Split(subItem, "答案:");
var answerArray = Regex.Split(subItem, "[答][案][::]");
if (answerArray != null && answerArray.Length > 0)
{
model.QuestionAnswer = answerArray.Length > 1 ? answerArray[1] : "";
......@@ -250,8 +250,8 @@ namespace Edu.Common.Data
}
if (subItem.Contains("难易程度:") || subItem.Contains("难易度:"))
{
string easyReg1 = @"难易程度";
string easyReg2 = @"难易度";
string easyReg1 = @"难易程度[::]";
string easyReg2 = @"难易度[::]";
Regex reg = new Regex(easyReg1);
Regex reg2 = new Regex(easyReg2);
string[] easyTypeArray = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment