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
eff76aa5
Commit
eff76aa5
authored
Mar 15, 2022
by
伍思炜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
fe74c8bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
service-manager/src/main/java/com/winsun/controller/ImgController.java
+4
-3
No files found.
service-manager/src/main/java/com/winsun/controller/ImgController.java
View file @
eff76aa5
...
...
@@ -41,13 +41,14 @@ public class ImgController extends BaseController {
if
(!
shiroUser
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
,
"系统管理员"
,
"县分管理员(订单)"
,
"合伙人"
)))
{
return
ResponseData
.
error
(
"无数据权限"
);
}
System
.
out
.
println
(
url
);
url
.
replace
(
"
manager/ciop"
,
""
);
System
.
out
.
println
(
"url :"
+
url
);
url
=
url
.
replace
(
"/api/
manager/ciop"
,
""
);
byte
[]
bytes
=
new
byte
[
10
];
String
imgurl
=
pathPre
+
FilePath
.
BACKGROUNDIMG
.
getValue
()+
"/"
+
url
;
imgurl
=
imgurl
.
replace
(
"//"
,
"/"
);
File
file
=
new
File
(
imgurl
);
//File file = new File(imgurl);
File
file
=
new
File
(
"D:\\test.jpg"
);
FileInputStream
inputStream
=
null
;
try
{
inputStream
=
new
FileInputStream
(
file
);
...
...
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