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
2082cd62
Commit
2082cd62
authored
Jan 08, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
d9ef027d
fa70981d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
QrcodeController.java
...a/com/gic/enterprise/web/controller/QrcodeController.java
+15
-0
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/QrcodeController.java
View file @
2082cd62
...
...
@@ -10,6 +10,7 @@ import com.gic.commons.util.PropertiesVal;
import
com.gic.commons.util.ToolUtil
;
import
com.gic.commons.util.ZipFileUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.ano.IgnoreLogin
;
import
com.gic.enterprise.context.RequestContext
;
import
com.gic.enterprise.dto.*
;
import
com.gic.enterprise.error.ErrorCode
;
...
...
@@ -240,6 +241,20 @@ public class QrcodeController {
return
RestResponse
.
success
(
pic
);
}
@RequestMapping
(
"take-store-qrcode"
)
@IgnoreLogin
public
RestResponse
takeStoreQrcode
(
String
appkey
,
Integer
id
,
Integer
qrcodeType
){
String
path
=
"pages/index/index?qrcodeParam="
+
id
+
"&qrcodeType="
+
qrcodeType
;
byte
[]
appletQrcode
=
this
.
createAppletQrcode
(
appkey
,
path
);
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
);
}
private
void
createQrcode
(
QrcodeQO
qrcodeQO
,
Integer
enterpriseId
,
final
String
filePath
,
String
fileId
,
Integer
downLoadId
,
UserDetail
userDetail
,
String
fileName
)
throws
Exception
{
new
Thread
(
new
Runnable
()
{
...
...
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