Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
48135289
Commit
48135289
authored
Dec 01, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
ff83c1d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
UploadController.java
...om/gic/haoban/manage/web/controller/UploadController.java
+7
-5
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/UploadController.java
View file @
48135289
...
@@ -11,6 +11,7 @@ import java.util.Map;
...
@@ -11,6 +11,7 @@ import java.util.Map;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -35,7 +36,7 @@ import com.gic.thirdparty.cloudfile.pojo.ImageCloudFileInfo;
...
@@ -35,7 +36,7 @@ import com.gic.thirdparty.cloudfile.pojo.ImageCloudFileInfo;
@RestController
@RestController
public
class
UploadController
extends
WebBaseController
{
public
class
UploadController
extends
WebBaseController
{
private
static
org
.
apache
.
logging
.
log4j
.
Logger
logger
=
LogManager
.
getLogger
(
StoreController
.
class
);
@Autowired
@Autowired
private
QQCloudPicService
qqCloudPicService
;
private
QQCloudPicService
qqCloudPicService
;
@Autowired
@Autowired
...
@@ -103,10 +104,11 @@ public class UploadController extends WebBaseController {
...
@@ -103,10 +104,11 @@ public class UploadController extends WebBaseController {
if
(
uploadInfo
!=
null
)
{
if
(
uploadInfo
!=
null
)
{
map
.
put
(
"qcloudImageUrl"
,
uploadInfo
.
getOrgFileUrl
());
map
.
put
(
"qcloudImageUrl"
,
uploadInfo
.
getOrgFileUrl
());
map
.
put
(
"imageFiledCode"
,
"imageFiledCode"
);
map
.
put
(
"imageFiledCode"
,
"imageFiledCode"
);
}
logger
.
info
(
uploadInfo
instanceof
ImageCloudFileInfo
);
if
(
uploadInfo
instanceof
ImageCloudFileInfo
)
{
if
(
uploadInfo
instanceof
ImageCloudFileInfo
)
{
uploadInfo
=
(
ImageCloudFileInfo
)
uploadInfo
;
ImageCloudFileInfo
info
=
(
ImageCloudFileInfo
)
uploadInfo
;
map
.
put
(
"compressFileUrl"
,
((
ImageCloudFileInfo
)
uploadInfo
).
getCompressFileUrl
());
map
.
put
(
"compressFileUrl"
,
info
.
getCompressFileUrl
());
}
}
}
picList
.
add
(
map
);
picList
.
add
(
map
);
file
.
deleteOnExit
();
file
.
deleteOnExit
();
...
...
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