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
b1572430
Commit
b1572430
authored
Mar 29, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成观云台小程序二维码
parent
55d6f2a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
Config.java
...b/src/main/java/com/gic/enterprise/web/config/Config.java
+9
-6
QrcodeController.java
...a/com/gic/enterprise/web/controller/QrcodeController.java
+3
-2
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/config/Config.java
View file @
b1572430
package
com
.
gic
.
enterprise
.
web
.
config
;
import
com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Configuration
;
/**
...
...
@@ -9,15 +10,17 @@ import org.springframework.context.annotation.Configuration;
* @author taogs
* @date 2020/9/11 15:28
*/
@Configuration
@EnableApolloConfig
public
class
Config
{
@Value
(
"${
host
}"
)
private
String
host
;
@Value
(
"${
gyt-qrcode
}"
)
private
String
gytQrcode
;
public
String
get
Host
()
{
return
host
;
public
String
get
GytQrcode
()
{
return
gytQrcode
;
}
public
void
set
Host
(
String
host
)
{
this
.
host
=
host
;
public
void
set
GytQrcode
(
String
gytQrcode
)
{
this
.
gytQrcode
=
gytQrcode
;
}
}
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/QrcodeController.java
View file @
b1572430
...
...
@@ -21,6 +21,7 @@ import com.gic.enterprise.service.DownloadReportApiService;
import
com.gic.enterprise.service.QrCodeApiService
;
import
com.gic.enterprise.utils.UserDetail
;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
com.gic.enterprise.web.config.Config
;
import
com.gic.enterprise.web.qo.QrcodeContent
;
import
com.gic.enterprise.web.qo.QrcodeQO
;
import
com.gic.enterprise.web.utils.QrcodeUtils
;
...
...
@@ -67,7 +68,7 @@ public class QrcodeController {
@Autowired
private
DownloadReportApiService
downloadReportApiService
;
@Autowired
Environment
environment
;
private
Config
config
;
@RequestMapping
(
"list-scenes-classify"
)
public
RestResponse
listScenesClassify
(){
...
...
@@ -260,7 +261,7 @@ public class QrcodeController {
@RequestMapping
(
"take-gyt-qrcode"
)
public
RestResponse
takeGytQrcode
(){
String
qrCode
=
environment
.
getProperty
(
"gyt-qrcode"
);
String
qrCode
=
config
.
getGytQrcode
(
);
return
RestResponse
.
success
(
qrCode
);
}
...
...
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