Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
881ae7e5
Commit
881ae7e5
authored
Nov 28, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建透明小程序二维码2
parent
d1d1bc56
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
ch-core/src/main/java/com/wwdz/ch/core/api/WxLoginManager.java
...re/src/main/java/com/wwdz/ch/core/api/WxLoginManager.java
+7
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
+0
-1
No files found.
ch-core/src/main/java/com/wwdz/ch/core/api/WxLoginManager.java
View file @
881ae7e5
...
...
@@ -18,6 +18,7 @@ import org.springframework.stereotype.Service;
import
java.io.InputStream
;
import
java.util.HashMap
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
...
...
@@ -212,6 +213,12 @@ public class WxLoginManager {
param
.
put
(
"page"
,
page
);
param
.
put
(
"scene"
,
scene
);
param
.
put
(
"check_path"
,
false
);
param
.
put
(
"auto_color"
,
false
);
LinkedHashMap
<
String
,
String
>
colorMap
=
new
LinkedHashMap
<>();
colorMap
.
put
(
"r"
,
"0"
);
colorMap
.
put
(
"g"
,
"0"
);
colorMap
.
put
(
"b"
,
"0"
);
param
.
put
(
"line_color"
,
colorMap
);
param
.
put
(
"is_hyaline"
,
true
);
InputStream
inputStream
=
OkHttpUtil
.
builder
().
url
(
url
).
addParams
(
param
).
post
(
true
).
getInputStream
();
return
inputStream
;
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
View file @
881ae7e5
...
...
@@ -1018,7 +1018,6 @@ public class ItemServiceImpl implements ItemService {
if
(
Objects
.
isNull
(
inputStream
))
{
return
Result
.
failed
(
"获取微信小程序流失败"
);
}
// 新生成微信小程序码并上传到七牛云
qiniuStorage
.
store
(
inputStream
,
1
,
MediaTypeEnum
.
IMAGE_JPG
.
getMime
(),
keyName
);
}
...
...
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