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
55d6f2a2
Commit
55d6f2a2
authored
Mar 29, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成观云台小程序二维码
parent
974abc63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
QrcodeController.java
...a/com/gic/enterprise/web/controller/QrcodeController.java
+5
-12
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/QrcodeController.java
View file @
55d6f2a2
...
...
@@ -36,6 +36,7 @@ import org.apache.commons.lang.StringUtils;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.core.env.Environment
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -65,6 +66,8 @@ public class QrcodeController {
private
WeixinWxaFunService
weixinWxaFunService
;
@Autowired
private
DownloadReportApiService
downloadReportApiService
;
@Autowired
Environment
environment
;
@RequestMapping
(
"list-scenes-classify"
)
public
RestResponse
listScenesClassify
(){
...
...
@@ -257,18 +260,8 @@ public class QrcodeController {
@RequestMapping
(
"take-gyt-qrcode"
)
public
RestResponse
takeGytQrcode
(){
String
path
=
"pages/customView/customView"
;
String
appkey
=
"wxba807000b40c9c78"
;
logger
.
info
(
"生成观云台小程序二维码"
);
byte
[]
appletQrcode
=
this
.
createAppletQrcode
(
appkey
,
path
,
null
);
UploadResult
uploadResult
=
QqCloudPicUtils
.
uploadLocalPicStream
(
"pic01"
,
""
,
appletQrcode
);
Map
<
String
,
Object
>
pic
=
new
HashMap
<>();
pic
.
put
(
"fileId"
,
uploadResult
.
getFileId
());
pic
.
put
(
"url"
,
uploadResult
.
getUrl
());
pic
.
put
(
"downloadUrl"
,
uploadResult
.
getDownloadUrl
());
pic
.
put
(
"path"
,
path
);
logger
.
info
(
"观云台小程序二维码:{}"
,
JSON
.
toJSONString
(
pic
));
return
RestResponse
.
success
(
pic
);
String
qrCode
=
environment
.
getProperty
(
"gyt-qrcode"
);
return
RestResponse
.
success
(
qrCode
);
}
@RequestMapping
(
"take-store-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