Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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-platform-enterprise
Commits
567912e8
Commit
567912e8
authored
Jan 10, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
d461773d
674f63f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
CustomThemeController.java
.../gic/enterprise/web/controller/CustomThemeController.java
+4
-4
QrcodeController.java
...a/com/gic/enterprise/web/controller/QrcodeController.java
+6
-1
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/CustomThemeController.java
View file @
567912e8
...
...
@@ -14,14 +14,14 @@ public class CustomThemeController {
private
CustomThemeApiService
customThemeApiService
;
@RequestMapping
(
"save-theme"
)
public
RestResponse
saveTheme
(
String
app
I
d
,
Integer
theme
,
Integer
type
){
ServiceResponse
<
Integer
>
response
=
this
.
customThemeApiService
.
saveTheme
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
app
I
d
,
theme
,
type
);
public
RestResponse
saveTheme
(
String
app
i
d
,
Integer
theme
,
Integer
type
){
ServiceResponse
<
Integer
>
response
=
this
.
customThemeApiService
.
saveTheme
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
app
i
d
,
theme
,
type
);
return
RestResponse
.
success
(
response
.
getResult
());
}
@RequestMapping
(
"get-theme"
)
public
RestResponse
getTheme
(
String
app
I
d
){
ServiceResponse
<
Integer
>
theme
=
this
.
customThemeApiService
.
getTheme
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
app
I
d
);
public
RestResponse
getTheme
(
String
app
i
d
){
ServiceResponse
<
Integer
>
theme
=
this
.
customThemeApiService
.
getTheme
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
app
i
d
);
return
RestResponse
.
success
(
theme
.
getResult
());
}
}
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/QrcodeController.java
View file @
567912e8
...
...
@@ -302,9 +302,14 @@ public class QrcodeController {
}
}
if
(
StringUtils
.
isNotBlank
(
dto
.
getAppletIds
()))
{
String
appletPath
=
content
.
getContent
();
if
(
StringUtils
.
isBlank
(
appletPath
)){
appletPath
=
"pages/index/index"
;
}
appletPath
+=
"?qrcodeParam="
+
qrcodeId
;
String
[]
appletArr
=
dto
.
getAppletIds
().
split
(
","
);
for
(
String
s
:
appletArr
)
{
byte
[]
appletQrcode
=
createAppletQrcode
(
s
,
content
.
getContent
()
);
byte
[]
appletQrcode
=
createAppletQrcode
(
s
,
appletPath
);
if
(
appletQrcode
!=
null
){
ZipEntry
e
=
new
ZipEntry
(
content
.
getTitle
()
+
File
.
separator
+
s
+
File
.
separator
+
content
.
getTitle
()
+
".jpg"
);
zipOutputStream
.
putNextEntry
(
e
);
...
...
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