Commit c6735683 authored by 黄奎's avatar 黄奎

页面修改

parent 404af261
...@@ -3,6 +3,7 @@ using Edu.Common; ...@@ -3,6 +3,7 @@ using Edu.Common;
using Edu.Common.API; using Edu.Common.API;
using Edu.Common.Enum; using Edu.Common.Enum;
using Edu.Common.Enum.Customer; using Edu.Common.Enum.Customer;
using Edu.Common.Enum.User;
using Edu.Model.CacheModel; using Edu.Model.CacheModel;
using Edu.Repository.Customer; using Edu.Repository.Customer;
using Edu.Repository.User; using Edu.Repository.User;
...@@ -161,6 +162,8 @@ namespace Edu.Cache.User ...@@ -161,6 +162,8 @@ namespace Edu.Cache.User
DeptName = model.DeptName, DeptName = model.DeptName,
PostName = model.PostName, PostName = model.PostName,
Email = model.Email, Email = model.Email,
IsTenCccUser = model.IsTenCccUser,
IsCourseConsultant = (model != null && model.UserRole == UserRoleEnum.CourseConsultant) ? 1 : 0,
}; };
UserInfoSet(Cache.CacheKey.User_Login_Key + Id.ToString(), userInfo, Common.Config.JwtExpirTime); UserInfoSet(Cache.CacheKey.User_Login_Key + Id.ToString(), userInfo, Common.Config.JwtExpirTime);
} }
......
...@@ -73,32 +73,31 @@ namespace Edu.Module.Exam ...@@ -73,32 +73,31 @@ namespace Edu.Module.Exam
{ {
var titleRandomNum = Common.ConvertHelper.CreateRandomNum(); var titleRandomNum = Common.ConvertHelper.CreateRandomNum();
var tempWords = reviewList[i]; var tempWords = reviewList[i];
var count = totalList?.Where(qitem => qitem.Id != tempWords.Id)?.Count()??0;
reviewGroupList.Add(CreateSingleModule(tempWords,totalList)); // reviewGroupList.Add(CreateSingleModule(tempWords,totalList));
////选择题 //选择题
//if (titleRandomNum % 2 == 0) if (titleRandomNum % 2 == 0)
//{ {
// if (count > 2)
// if (tempList != null && tempList.Count > 2) {
// { reviewGroupList.Add(CreateSingleModule(tempWords, totalList));
// reviewGroupList.Add(CreateSingleModule(tempWords, tempList)); }
// } else
// else {
// { if (!string.IsNullOrEmpty(tempWords.ChineseMean) || !string.IsNullOrEmpty(tempWords.WordWrite))
// if (!string.IsNullOrEmpty(tempWords.ChineseMean) || !string.IsNullOrEmpty(tempWords.WordWrite)) {
// { reviewGroupList.Add(CreateFillInModule(tempWords));
// reviewGroupList.Add(CreateFillInModule(tempWords)); }
// } }
// } }
//} //填空题
////填空题 else
//else {
//{ if (!string.IsNullOrEmpty(tempWords.ChineseMean) || !string.IsNullOrEmpty(tempWords.WordWrite))
// if (!string.IsNullOrEmpty(tempWords.ChineseMean) || !string.IsNullOrEmpty(tempWords.WordWrite)) {
// { reviewGroupList.Add(CreateFillInModule(tempWords));
// reviewGroupList.Add(CreateFillInModule(tempWords)); }
// } }
//}
} }
} }
......
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