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
8d1d3440
Commit
8d1d3440
authored
Mar 29, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成观云台小程序二维码
parent
0d5bb673
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
QrcodeController.java
...a/com/gic/enterprise/web/controller/QrcodeController.java
+14
-0
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/QrcodeController.java
View file @
8d1d3440
...
...
@@ -255,6 +255,20 @@ public class QrcodeController {
return
RestResponse
.
success
(
pic
);
}
@RequestMapping
(
"take-gyt-qrcode"
)
public
RestResponse
takeGytQrcode
(){
String
path
=
"pages/customView/customView"
;
String
appkey
=
"wxba807000b40c9c78"
;
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
);
return
RestResponse
.
success
(
pic
);
}
@RequestMapping
(
"take-store-qrcode"
)
@IgnoreLogin
public
RestResponse
takeStoreQrcode
(
String
appkey
,
Integer
id
,
Integer
qrcodeType
){
...
...
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