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
8b3c7c81
Commit
8b3c7c81
authored
Apr 20, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理部分BUG
parent
7401e5c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
4 deletions
+45
-4
ClassModule.cs
Edu.Module.Course/ClassModule.cs
+5
-2
ScrollClassModule.cs
Edu.Module.Course/ScrollClassModule.cs
+8
-2
ClassController.cs
Edu.WebApi/Controllers/Course/ClassController.cs
+32
-0
No files found.
Edu.Module.Course/ClassModule.cs
View file @
8b3c7c81
...
@@ -2541,8 +2541,11 @@ namespace Edu.Module.Course
...
@@ -2541,8 +2541,11 @@ namespace Edu.Module.Course
}
}
}
}
}
}
//通知教室端签到更新
if
(
MessageCenterHub
.
GlobalContext
!=
null
)
await
MessageCenterHub
.
GlobalContext
.
Clients
.
All
.
SendAsync
(
"UpdateCheckin"
,
"666"
);
{
//通知教室端签到更新
await
MessageCenterHub
.
GlobalContext
.
Clients
.
All
.
SendAsync
(
"UpdateCheckin"
,
"666"
);
}
return
flag
;
return
flag
;
}
}
...
...
Edu.Module.Course/ScrollClassModule.cs
View file @
8b3c7c81
...
@@ -2933,7 +2933,10 @@ namespace Edu.Module.Course
...
@@ -2933,7 +2933,10 @@ namespace Edu.Module.Course
}
}
}
}
await
MessageCenterHub
.
GlobalContext
.
Clients
.
All
.
SendAsync
(
"ChangePlan"
,
"55555555 "
);
if
(
MessageCenterHub
.
GlobalContext
!=
null
)
{
await
MessageCenterHub
.
GlobalContext
.
Clients
.
All
.
SendAsync
(
"ChangePlan"
,
"55555555 "
);
}
}
}
return
""
;
return
""
;
}
}
...
@@ -3003,7 +3006,10 @@ namespace Edu.Module.Course
...
@@ -3003,7 +3006,10 @@ namespace Edu.Module.Course
class_CheckRepository
.
Update
(
keyValues
,
wheres
);
class_CheckRepository
.
Update
(
keyValues
,
wheres
);
}
}
}
}
await
MessageCenterHub
.
GlobalContext
.
Clients
.
All
.
SendAsync
(
"ChangePlan"
,
"55555555 "
);
if
(
MessageCenterHub
.
GlobalContext
!=
null
)
{
await
MessageCenterHub
.
GlobalContext
.
Clients
.
All
.
SendAsync
(
"ChangePlan"
,
"55555555 "
);
}
}
}
}
}
return
""
;
return
""
;
...
...
Edu.WebApi/Controllers/Course/ClassController.cs
View file @
8b3c7c81
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
using
System.Security.Cryptography
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
System.Web
;
using
System.Web
;
using
Edu.Cache.User
;
using
Edu.Cache.User
;
...
@@ -1311,6 +1313,36 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -1311,6 +1313,36 @@ namespace Edu.WebApi.Controllers.Course
return
result
?
ApiResult
.
Success
(
message
:
"check_success"
)
:
ApiResult
.
Failed
(
"签到失败"
);
return
result
?
ApiResult
.
Success
(
message
:
"check_success"
)
:
ApiResult
.
Failed
(
"签到失败"
);
}
}
///// <summary>
///// 视频转码回调
///// </summary>
///// <returns></returns>
//[HttpPost]
//[AllowAnonymous]
//public ApiResult VodCallBack()
//{
// var headers = Request.HttpContext.Request.Headers;
// var timestamp = headers["X-VOD-TIMESTAMP"].ToString();
// var signature = headers["X-VOD-SIGNATURE"].ToString();
// var callUrl= "https://eduapi.oytour.com/api/class/VodCallBack";
// var privateKey = "AliyunVodViittoCallBack2022";
// var md5Str=string.Join("", MD5.Create().ComputeHash(Encoding.UTF8.GetBytes($"{callUrl}|{timestamp}|{privateKey}")).Select(x => x.ToString("x2")));
// if (md5Str.Equals(signature))
// {
// LogHelper.Write($"收到回调,比对结果为TRUE,{callUrl}|{timestamp}|{privateKey}|{md5Str}|{signature}");
// p
// }
// else
// {
// LogHelper.Write($"收到回调,比对结果为false,{callUrl}|{timestamp}|{privateKey}|{md5Str}|{signature}");
// }
// return ApiResult.Success();
//}
/// <summary>
/// <summary>
/// 获取班级学生树形列表
/// 获取班级学生树形列表
/// </summary>
/// </summary>
...
...
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