Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 35ae8bc5
authored
Jul 19, 2021
by
danmo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复群活码生成二维码失败问题
1 parent
b91e3afa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeTaskFissionServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeTaskFissionServiceImpl.java
View file @
35ae8bc
...
@@ -451,7 +451,8 @@ public class WeTaskFissionServiceImpl extends ServiceImpl<WeTaskFissionMapper, W
...
@@ -451,7 +451,8 @@ public class WeTaskFissionServiceImpl extends ServiceImpl<WeTaskFissionMapper, W
ImageIO
.
write
(
bufferedImage
,
"png"
,
byteArrayOutputStream
);
ImageIO
.
write
(
bufferedImage
,
"png"
,
byteArrayOutputStream
);
NetFileUtils
.
StreamMultipartFile
streamMultipartFile
=
new
NetFileUtils
.
StreamMultipartFile
(
System
.
currentTimeMillis
()
+
".jpg"
,
byteArrayOutputStream
.
toByteArray
());
NetFileUtils
.
StreamMultipartFile
streamMultipartFile
=
new
NetFileUtils
.
StreamMultipartFile
(
System
.
currentTimeMillis
()
+
".jpg"
,
byteArrayOutputStream
.
toByteArray
());
JSONObject
fileInfo
=
FileUtil
.
upload
(
streamMultipartFile
);
JSONObject
fileInfo
=
FileUtil
.
upload
(
streamMultipartFile
);
return
fileInfo
.
getString
(
"imgUrlPrefix"
);
log
.
info
(
">>>>>>>>>>>>fileInfo:{}"
,
fileInfo
.
toJSONString
());
return
fileInfo
.
getString
(
"imgUrlPrefix"
)+
fileInfo
.
getString
(
"fileName"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
warn
(
"生成海报二维码异常, record={}, customer={}, exception={}"
,
JSONObject
.
toJSONString
(
record
),
JSONObject
.
toJSONString
(
weCustomer
),
ExceptionUtils
.
getStackTrace
(
e
));
log
.
warn
(
"生成海报二维码异常, record={}, customer={}, exception={}"
,
JSONObject
.
toJSONString
(
record
),
JSONObject
.
toJSONString
(
weCustomer
),
ExceptionUtils
.
getStackTrace
(
e
));
throw
new
WeComException
(
"生成二维码异常"
);
throw
new
WeComException
(
"生成二维码异常"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment