Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
cfe1cf8f
Commit
cfe1cf8f
authored
Oct 21, 2020
by
罗承锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分代码审计问题,提交审计结果
parent
6b2c737d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
service-manager/src/main/java/com/winsun/controller/LzKpiController.java
+0
-3
service-manager/src/main/java/com/winsun/controller/SchoolManagementController.java
+2
-2
校园新框架代码审计结果.xls
+0
-0
No files found.
service-manager/src/main/java/com/winsun/controller/LzKpiController.java
View file @
cfe1cf8f
...
@@ -523,9 +523,6 @@ public class LzKpiController extends BaseController {
...
@@ -523,9 +523,6 @@ public class LzKpiController extends BaseController {
if
(!
StringUtils
.
endsWithAny
(
file
.
getOriginalFilename
(),
"xlsx"
,
"xls"
))
{
if
(!
StringUtils
.
endsWithAny
(
file
.
getOriginalFilename
(),
"xlsx"
,
"xls"
))
{
return
ResponseData
.
error
(
"手工上传数据仅支持Excel文件,其他格式不支持!"
);
return
ResponseData
.
error
(
"手工上传数据仅支持Excel文件,其他格式不支持!"
);
}
}
if
(
(
double
)
file
.
getSize
()/
1048576
>
100
)
{
return
ResponseData
.
error
(
"文件过大,无法上传"
);
}
ShiroUser
user
=
getShiroUser
();
ShiroUser
user
=
getShiroUser
();
// 当前是否有数据权限
// 当前是否有数据权限
boolean
hasDataPermission
=
user
.
getRoleNames
().
stream
().
anyMatch
(
data
->
StringUtils
.
equalsAny
(
data
,
"活动上单员"
,
"数据管理员"
,
"超级管理员"
));
boolean
hasDataPermission
=
user
.
getRoleNames
().
stream
().
anyMatch
(
data
->
StringUtils
.
equalsAny
(
data
,
"活动上单员"
,
"数据管理员"
,
"超级管理员"
));
...
...
service-manager/src/main/java/com/winsun/controller/SchoolManagementController.java
View file @
cfe1cf8f
...
@@ -257,8 +257,8 @@ public class SchoolManagementController extends BaseController {
...
@@ -257,8 +257,8 @@ public class SchoolManagementController extends BaseController {
if
(
(
double
)
file
.
getSize
()/
1048576
>
100
)
{
if
(
(
double
)
file
.
getSize
()/
1048576
>
100
)
{
return
ResponseData
.
error
(
"图片过大,无法上传"
);
return
ResponseData
.
error
(
"图片过大,无法上传"
);
}
}
School
school1
=
schoolMapper
.
selectById
(
id
);
File
savePath
=
new
File
(
backgroundpath
,
id
+
FILENAME
);
File
savePath
=
new
File
(
backgroundpath
,
school1
.
getId
()
+
FILENAME
);
OutputStream
os
=
null
;
OutputStream
os
=
null
;
try
{
try
{
os
=
new
FileOutputStream
(
savePath
);
os
=
new
FileOutputStream
(
savePath
);
...
...
校园新框架代码审计结果.xls
0 → 100644
View file @
cfe1cf8f
File added
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