Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
20941ce2
Unverified
提交
20941ce2
authored
12月 29, 2021
作者:
fit2cloud-chenyw
提交者:
GitHub
12月 29, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1558 from dataease/pr@dev@fix_muilt_fields
fix: 多字段枚举接口免登录
上级
72164d37
b2e4307b
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
9 行删除
+7
-9
ShiroServiceImpl.java
.../java/io/dataease/auth/service/impl/ShiroServiceImpl.java
+1
-0
EmailService.java
...rc/main/java/io/dataease/service/system/EmailService.java
+6
-9
没有找到文件。
backend/src/main/java/io/dataease/auth/service/impl/ShiroServiceImpl.java
浏览文件 @
20941ce2
...
...
@@ -50,6 +50,7 @@ public class ShiroServiceImpl implements ShiroService {
filterChainDefinitionMap
.
put
(
"/api/link/validate**"
,
ANON
);
filterChainDefinitionMap
.
put
(
"/api/map/areaEntitys/**"
,
ANON
);
filterChainDefinitionMap
.
put
(
"/dataset/field/fieldValues/**"
,
ANON
);
filterChainDefinitionMap
.
put
(
"/dataset/field/multFieldValues"
,
ANON
);
filterChainDefinitionMap
.
put
(
"/linkJump/queryPanelJumpInfo/**"
,
ANON
);
filterChainDefinitionMap
.
put
(
"/tempMobileLink/**"
,
ANON
);
...
...
backend/src/main/java/io/dataease/service/system/EmailService.java
浏览文件 @
20941ce2
...
...
@@ -29,7 +29,6 @@ import java.util.List;
import
java.util.Properties
;
import
java.util.UUID
;
@Service
public
class
EmailService
{
...
...
@@ -47,7 +46,6 @@ public class EmailService {
private
static
final
String
SMTP_CONNECTIONTIMEOUT_VAL
=
"5000"
;
@Resource
private
SystemParameterMapper
systemParameterMapper
;
...
...
@@ -57,7 +55,8 @@ public class EmailService {
* @param content 内容
*/
public
void
send
(
String
to
,
String
title
,
String
content
)
{
if
(
StringUtils
.
isBlank
(
to
))
return
;
if
(
StringUtils
.
isBlank
(
to
))
return
;
MailInfo
mailInfo
=
proxy
().
mailInfo
();
JavaMailSenderImpl
driver
=
driver
(
mailInfo
);
...
...
@@ -77,7 +76,8 @@ public class EmailService {
}
public
void
sendWithImage
(
String
to
,
String
title
,
String
content
,
byte
[]
bytes
)
{
if
(
StringUtils
.
isBlank
(
to
))
return
;
if
(
StringUtils
.
isBlank
(
to
))
return
;
MailInfo
mailInfo
=
proxy
().
mailInfo
();
JavaMailSenderImpl
driver
=
driver
(
mailInfo
);
MimeMessage
mimeMessage
=
driver
.
createMimeMessage
();
...
...
@@ -89,7 +89,8 @@ public class EmailService {
MimeBodyPart
text
=
new
MimeBodyPart
();
try
{
text
.
setContent
(
"<h2>"
+
content
+
"</h2>"
+
"<br/><img src='cid:"
+
uuid
+
"' />"
,
"text/html; charset=gb2312"
);
text
.
setContent
(
content
+
"<br/><img style='width: 60%;' src='cid:"
+
uuid
+
"' />"
,
"text/html; charset=gb2312"
);
image
.
setDataHandler
(
png
);
image
.
setContentID
(
uuid
);
MimeMultipart
multipart
=
new
MimeMultipart
();
...
...
@@ -131,7 +132,6 @@ public class EmailService {
return
CommonBeanFactory
.
getBean
(
EmailService
.
class
);
}
public
MailInfo
mailInfo
()
{
String
type
=
ParamConstants
.
Classify
.
MAIL
.
getValue
();
List
<
SystemParameter
>
paramList
=
getParamList
(
type
);
...
...
@@ -159,14 +159,12 @@ public class EmailService {
return
mailInfo
;
}
public
List
<
SystemParameter
>
getParamList
(
String
type
)
{
SystemParameterExample
example
=
new
SystemParameterExample
();
example
.
createCriteria
().
andParamKeyLike
(
type
+
"%"
);
return
systemParameterMapper
.
selectByExample
(
example
);
}
public
void
editMail
(
List
<
SystemParameter
>
parameters
)
{
parameters
.
forEach
(
parameter
->
{
SystemParameterExample
example
=
new
SystemParameterExample
();
...
...
@@ -227,6 +225,5 @@ public class EmailService {
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论