Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
c6735683
Commit
c6735683
authored
Jan 12, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
404af261
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
26 deletions
+28
-26
UserReidsCache.cs
Edu.Cache/User/UserReidsCache.cs
+3
-0
CourseExamModule.cs
Edu.Module.Exam/CourseExamModule.cs
+25
-26
No files found.
Edu.Cache/User/UserReidsCache.cs
View file @
c6735683
...
...
@@ -3,6 +3,7 @@ using Edu.Common;
using
Edu.Common.API
;
using
Edu.Common.Enum
;
using
Edu.Common.Enum.Customer
;
using
Edu.Common.Enum.User
;
using
Edu.Model.CacheModel
;
using
Edu.Repository.Customer
;
using
Edu.Repository.User
;
...
...
@@ -161,6 +162,8 @@ namespace Edu.Cache.User
DeptName
=
model
.
DeptName
,
PostName
=
model
.
PostName
,
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
);
}
...
...
Edu.Module.Exam/CourseExamModule.cs
View file @
c6735683
...
...
@@ -73,32 +73,31 @@ namespace Edu.Module.Exam
{
var
titleRandomNum
=
Common
.
ConvertHelper
.
CreateRandomNum
();
var
tempWords
=
reviewList
[
i
];
reviewGroupList
.
Add
(
CreateSingleModule
(
tempWords
,
totalList
));
////选择题
//if (titleRandomNum % 2 == 0)
//{
//
// if (tempList != null && tempList.Count > 2)
// {
// reviewGroupList.Add(CreateSingleModule(tempWords, tempList));
// }
// else
// {
// if (!string.IsNullOrEmpty(tempWords.ChineseMean) || !string.IsNullOrEmpty(tempWords.WordWrite))
// {
// reviewGroupList.Add(CreateFillInModule(tempWords));
// }
// }
//}
////填空题
//else
//{
// if (!string.IsNullOrEmpty(tempWords.ChineseMean) || !string.IsNullOrEmpty(tempWords.WordWrite))
// {
// reviewGroupList.Add(CreateFillInModule(tempWords));
// }
//}
var
count
=
totalList
?.
Where
(
qitem
=>
qitem
.
Id
!=
tempWords
.
Id
)?.
Count
()??
0
;
// reviewGroupList.Add(CreateSingleModule(tempWords,totalList));
//选择题
if
(
titleRandomNum
%
2
==
0
)
{
if
(
count
>
2
)
{
reviewGroupList
.
Add
(
CreateSingleModule
(
tempWords
,
totalList
));
}
else
{
if
(!
string
.
IsNullOrEmpty
(
tempWords
.
ChineseMean
)
||
!
string
.
IsNullOrEmpty
(
tempWords
.
WordWrite
))
{
reviewGroupList
.
Add
(
CreateFillInModule
(
tempWords
));
}
}
}
//填空题
else
{
if
(!
string
.
IsNullOrEmpty
(
tempWords
.
ChineseMean
)
||
!
string
.
IsNullOrEmpty
(
tempWords
.
WordWrite
))
{
reviewGroupList
.
Add
(
CreateFillInModule
(
tempWords
));
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment