Commit 3b0981a5 authored by 吴春's avatar 吴春

Merge branch 'master' of http://gitlab.oytour.com/Kui2/education

parents a0fbef9d cce6bd5e
......@@ -266,11 +266,27 @@ namespace Edu.Common.Data
{
model.QuestionTypeName = "多选题";
}
if (model.QuestionAnswer == "A")
{
model.QuestionAnswer = "A";
}
if (model.QuestionAnswer == "B")
{
model.QuestionAnswer = "B";
}
if (model.QuestionAnswer == "C")
{
model.QuestionAnswer = "C";
}
if (model.QuestionAnswer == "D")
{
model.QuestionAnswer = "D";
}
int index = 0;
int chooseCount = 0;
foreach (var item in tempArray)
{
string pattern = @"[ABCDEFGHI][.、]";
string pattern = @"[ABCDEFGHIABCD][.、]";
var tempArray2 = Regex.Split(item, pattern);
if (tempArray2 != null && tempArray2.Length == 2)
{
......
......@@ -1411,7 +1411,12 @@ namespace Edu.Common.Plugin
/// <returns></returns>
public static bool IsUpperLetter(string str)
{
return System.Text.RegularExpressions.Regex.IsMatch(str, @"^[A-Z]+$");
bool flag = System.Text.RegularExpressions.Regex.IsMatch(str, @"^[A-Z]+$");
if (!flag)
{
flag = (str.Contains("A") || str.Contains("B") || str.Contains("C") || str.Contains("D"));
}
return flag;
}
}
}
......@@ -69,7 +69,11 @@ namespace Edu.Common.Plugin
{
if (!string.IsNullOrEmpty(item))
{
list.Add(AnalysisQuestionCategory(item, imageList, isBigType: true));
var model = AnalysisQuestionCategory(item, imageList, isBigType: true);
if (model != null && !string.IsNullOrEmpty(model.BigTitle))
{
list.Add(model);
}
}
}
}
......
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