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
98d2b5d4
Commit
98d2b5d4
authored
Jun 11, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
Developer See merge request
!6
parents
c9014448
a0e112c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
StoreController.java
...ain/java/com/gic/plug/web/controller/StoreController.java
+10
-0
UploadImgController.java
...java/com/gic/plug/web/controller/UploadImgController.java
+15
-0
No files found.
src/main/java/com/gic/plug/web/controller/StoreController.java
View file @
98d2b5d4
...
...
@@ -120,6 +120,16 @@ public class StoreController {
storeWidgetDTO
.
setAuthSearchParam
(
storeWidgetQO
.
getAuthSearchParam
());
storeWidgetDTO
.
setSearchParam
(
storeWidgetQO
.
getSearchParam
());
storeWidgetDTO
.
setStoreWidgetId
(
storeWidgetQO
.
getStoreWidgetId
());
if
(
storeWidgetQO
.
getStoreWidgetId
()!=
null
){
StoreWidgetDTO
old
=
this
.
storeWidgetApiService
.
getStoreWidget
(
storeWidgetQO
.
getStoreWidgetId
()).
getResult
();
if
(
old
!=
null
){
if
(
StringUtils
.
isNotBlank
(
storeWidgetQO
.
getAuthSearchParam
())
&&
!
storeWidgetQO
.
getAuthSearchParam
().
equals
(
old
.
getAuthSearchParam
())){
storeWidgetDTO
.
setStoreWidgetId
(
null
);
}
else
if
(
StringUtils
.
isBlank
(
storeWidgetQO
.
getAuthSearchParam
())
&&
StringUtils
.
isNotBlank
(
storeWidgetQO
.
getAuthSearchParam
())){
storeWidgetDTO
.
setStoreWidgetId
(
null
);
}
}
}
storeWidgetDTO
.
setWriteBackParam
(
storeWidgetQO
.
getWriteBackParam
());
storeWidgetDTO
.
setAuthMode
(
storeWidgetQO
.
getAuthMode
());
ServiceResponse
<
Integer
>
storeWidgetResponse
=
this
.
storeWidgetApiService
.
saveAuthStoreWidget
(
storeWidgetDTO
);
...
...
src/main/java/com/gic/plug/web/controller/UploadImgController.java
View file @
98d2b5d4
...
...
@@ -48,6 +48,21 @@ public class UploadImgController {
return
RestResponse
.
success
(
picList
);
}
@RequestMapping
(
"get-cos-secret"
)
@IgnoreLogin
public
RestResponse
getCosSecret
(
HttpServletRequest
request
)
throws
IOException
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"secretId"
,
"AKIDxpbnsmZ0KYtAKNd5f7QbbP3YyDJD6Rq3"
);
map
.
put
(
"secretKey"
,
"GLFwRjpmYviRzLUREqKcieS4VmsmU1Lc"
);
byte
[]
bytes
=
map
.
get
(
"secretKey"
).
getBytes
();
//Base64 加密
String
encoded
=
Base64
.
getEncoder
().
encodeToString
(
bytes
);
map
.
put
(
"secretKey"
,
encoded
);
map
.
put
(
"bucket"
,
"video-1251519181"
);
map
.
put
(
"region"
,
"ap-shanghai"
);
return
RestResponse
.
success
(
map
);
}
@RequestMapping
(
"upload-file"
)
@IgnoreLogin
public
RestResponse
uploadFile
(
HttpServletRequest
request
)
throws
IOException
{
...
...
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