Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
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
base_platform_enterprise
gic-webapp-plug
Commits
cd38893b
Commit
cd38893b
authored
Sep 21, 2020
by
何文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qqcloudimage
parent
1cbff4ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
UploadImgController.java
...java/com/gic/plug/web/controller/UploadImgController.java
+2
-2
No files found.
src/main/java/com/gic/plug/web/controller/UploadImgController.java
View file @
cd38893b
...
@@ -5,7 +5,7 @@ import com.gic.commons.webapi.reponse.RestResponse;
...
@@ -5,7 +5,7 @@ import com.gic.commons.webapi.reponse.RestResponse;
import
com.gic.enterprise.ano.IgnoreLogin
;
import
com.gic.enterprise.ano.IgnoreLogin
;
import
com.gic.thirdparty.BucketNameEnum
;
import
com.gic.thirdparty.BucketNameEnum
;
import
com.gic.thirdparty.FileOperateUtils
;
import
com.gic.thirdparty.FileOperateUtils
;
import
com.gic.thirdparty.pic.Q
Q
CloudPicUtils
;
import
com.gic.thirdparty.pic.Q
q
CloudPicUtils
;
import
com.gic.thirdparty.pic.UploadResult
;
import
com.gic.thirdparty.pic.UploadResult
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.LogManager
;
...
@@ -42,7 +42,7 @@ public class UploadImgController {
...
@@ -42,7 +42,7 @@ public class UploadImgController {
Map
<
String
,
Object
>
map
=
null
;
Map
<
String
,
Object
>
map
=
null
;
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
MultipartFile
mf
=
list
.
get
(
i
);
MultipartFile
mf
=
list
.
get
(
i
);
UploadResult
uploadResult
=
Q
Q
CloudPicUtils
.
uploadLocalPicStream
(
"pic01"
,
""
,
mf
.
getBytes
());
UploadResult
uploadResult
=
Q
q
CloudPicUtils
.
uploadLocalPicStream
(
"pic01"
,
""
,
mf
.
getBytes
());
logger
.
info
(
"上传图片结果:"
+
JSON
.
toJSONString
(
uploadResult
));
logger
.
info
(
"上传图片结果:"
+
JSON
.
toJSONString
(
uploadResult
));
Map
<
String
,
Object
>
pic
=
new
HashMap
<>(
8
);
Map
<
String
,
Object
>
pic
=
new
HashMap
<>(
8
);
pic
.
put
(
"fileId"
,
uploadResult
.
getFileId
());
pic
.
put
(
"fileId"
,
uploadResult
.
getFileId
());
...
...
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