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
870c9819
Commit
870c9819
authored
Feb 23, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
81df49fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
2 deletions
+46
-2
FileHelper.cs
Edu.Common/Plugin/FileHelper.cs
+46
-0
SchoolGardenController.cs
...bApi/Controllers/LearningGarden/SchoolGardenController.cs
+0
-1
LoginController.cs
Edu.WebApi/Controllers/User/LoginController.cs
+0
-1
No files found.
Edu.Common/Plugin/FileHelper.cs
0 → 100644
View file @
870c9819
using
System
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Text
;
namespace
Edu.Common.Plugin
{
/// <summary>
/// 文件帮助类
/// </summary>
public
class
FileHelper
{
/// <summary>
/// 获取指定文件夹下面的所有文件
/// </summary>
/// <param name="path"></param>
/// <param name="serverPath"></param>
/// <returns></returns>
public
static
List
<
FileItem
>
GetFileAllPath
(
string
path
,
string
savePath
)
{
List
<
FileItem
>
fileList
=
new
List
<
FileItem
>();
DirectoryInfo
rootFolder
=
new
DirectoryInfo
(
path
);
if
(
rootFolder
!=
null
)
{
}
return
fileList
;
}
}
/// <summary>
/// 文件项目
/// </summary>
public
class
FileItem
{
/// <summary>
/// 文件名
/// </summary>
public
string
FileName
{
get
;
set
;
}
/// <summary>
/// 文件全路径
/// </summary>
public
string
FileUrl
{
get
;
set
;
}
}
}
Edu.WebApi/Controllers/LearningGarden/SchoolGardenController.cs
View file @
870c9819
...
...
@@ -160,7 +160,6 @@ namespace Edu.WebApi.Controllers.LearningGarden
{
int
pageIndex
=
1
;
int
pageSize
=
20
;
int
pageCount
=
0
;
//获取token
string
tokenKey
=
Cache
.
CacheKey
.
DATA_WeChatAccountToken
+
Common
.
Config
.
WeChatAccountAppId
;
string
token
=
Cache
.
WeChat
.
WeChatReidsCache2
.
GetToken
(
tokenKey
);
...
...
Edu.WebApi/Controllers/User/LoginController.cs
View file @
870c9819
...
...
@@ -63,7 +63,6 @@ namespace Edu.WebApi.Controllers.User
[
AllowAnonymous
]
public
ApiResult
Test
()
{
courseModule
.
RunCourseChapterModule
();
return
ApiResult
.
Success
();
}
...
...
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