Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
梁杰芳
slm-fileview
Commits
c78bf060
Commit
c78bf060
authored
Mar 08, 2018
by
kl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善多图片轮播预览接口逻辑
parent
e8f0efe1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
OnlinePreviewController.java
...ava/cn/keking/web/controller/OnlinePreviewController.java
+4
-2
No files found.
jodconverter-web/src/main/java/cn/keking/web/controller/OnlinePreviewController.java
View file @
c78bf060
...
...
@@ -61,13 +61,15 @@ public class OnlinePreviewController {
* @throws UnsupportedEncodingException
*/
@RequestMapping
(
value
=
"picturesPreview"
,
method
=
RequestMethod
.
GET
)
public
String
picturesPreview
(
String
urls
,
Model
model
,
HttpServletRequest
req
)
throws
UnsupportedEncodingException
{
public
String
picturesPreview
(
String
urls
,
String
currentUrl
,
Model
model
,
HttpServletRequest
req
)
throws
UnsupportedEncodingException
{
// 路径转码
String
decodedUrl
=
URLDecoder
.
decode
(
urls
,
"utf-8"
);
String
decodedCurrentUrl
=
URLDecoder
.
decode
(
currentUrl
,
"utf-8"
);
// 抽取文件并返回文件列表
String
[]
imgs
=
decodedUrl
.
split
(
"|"
);
String
[]
imgs
=
decodedUrl
.
split
(
"
\\
|"
);
List
imgurls
=
Arrays
.
asList
(
imgs
);
model
.
addAttribute
(
"imgurls"
,
imgurls
);
model
.
addAttribute
(
"currentUrl"
,
decodedCurrentUrl
);
return
"picture"
;
}
...
...
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