fixbug 资源保存表情报错

This commit is contained in:
limqhz
2022-05-16 17:52:03 +08:00
parent 15658fe016
commit 799cde2d13
3 changed files with 8 additions and 8 deletions

View File

@@ -58,7 +58,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
// http.requiresChannel().anyRequest().requiresSecure();
// 记住我配置 默认为remember-me
// http.rememberMe().rememberMeParameter("remember");
http.rememberMe();
}
// 用户授权验证

View File

@@ -102,8 +102,8 @@ public class SourceServiceImpl extends ServiceImpl<SourceMapper, Source> impleme
source.setEnName(sourceWriteForm.getEnName());
source.setFileType(fileType);
source.setSourceName(sourceWriteForm.getTitle());
source.setDetail(CovertEmojStr.coverStr(sourceWriteForm.getSubContent()));
source.setSourceContent(sourceWriteForm.getContent());
source.setDetail(sourceWriteForm.getSubContent());
source.setSourceContent(CovertEmojStr.coverStr(sourceWriteForm.getContent()));
String s = ContentUtil.toTextContentFromWangEdit(CovertEmojStr.coverStr(sourceWriteForm.getContentJson()));
sourceWriteForm.setContentJson(s);
source.setSourceType(sourceWriteForm.getSourceType());