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(); // http.requiresChannel().anyRequest().requiresSecure();
// 记住我配置 默认为remember-me // 记住我配置 默认为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.setEnName(sourceWriteForm.getEnName());
source.setFileType(fileType); source.setFileType(fileType);
source.setSourceName(sourceWriteForm.getTitle()); source.setSourceName(sourceWriteForm.getTitle());
source.setDetail(CovertEmojStr.coverStr(sourceWriteForm.getSubContent())); source.setDetail(sourceWriteForm.getSubContent());
source.setSourceContent(sourceWriteForm.getContent()); source.setSourceContent(CovertEmojStr.coverStr(sourceWriteForm.getContent()));
String s = ContentUtil.toTextContentFromWangEdit(CovertEmojStr.coverStr(sourceWriteForm.getContentJson())); String s = ContentUtil.toTextContentFromWangEdit(CovertEmojStr.coverStr(sourceWriteForm.getContentJson()));
sourceWriteForm.setContentJson(s); sourceWriteForm.setContentJson(s);
source.setSourceType(sourceWriteForm.getSourceType()); source.setSourceType(sourceWriteForm.getSourceType());

View File

@@ -55,8 +55,8 @@
<p>戳下方了解详情↓↓↓</p> <p>戳下方了解详情↓↓↓</p>
</div> </div>
<div id="fastLink" class="row"> <div id="fastLink" class="row">
<div class="col-md-4"></div> <div class="col-md-3"></div>
<div class="ml-2 col-md-1"> <div class="ml-2 col-md-2">
<a th:href="@{/blog/read/1}" class="text-dark font-weight-bold text-decoration-none"> <a th:href="@{/blog/read/1}" class="text-dark font-weight-bold text-decoration-none">
<p class= "badge badge-pill badge-dark">注册说明 <p class= "badge badge-pill badge-dark">注册说明
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-postcard-fill" viewBox="0 0 16 16"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-postcard-fill" viewBox="0 0 16 16">
@@ -66,7 +66,7 @@
</p> </p>
</a> </a>
</div> </div>
<div class="ml-2 col-md-1"> <div class="ml-2 col-md-2">
<a th:href="@{/blog/read/2}" class="text-dark font-weight-bold text-decoration-none"> <a th:href="@{/blog/read/2}" class="text-dark font-weight-bold text-decoration-none">
<p class="badge badge-pill badge-success">网站建设 <p class="badge badge-pill badge-success">网站建设
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-postcard-fill" viewBox="0 0 16 16"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-postcard-fill" viewBox="0 0 16 16">
@@ -76,7 +76,7 @@
</p> </p>
</a> </a>
</div> </div>
<div class="ml-2 col-md-1"> <div class="ml-2 col-md-2">
<a th:href="@{/blog/read/3}" class="text-dark font-weight-bold text-decoration-none"> <a th:href="@{/blog/read/3}" class="text-dark font-weight-bold text-decoration-none">
<p class="badge badge-pill badge-warning">建议反馈 <p class="badge badge-pill badge-warning">建议反馈
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-postcard-fill" viewBox="0 0 16 16"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-postcard-fill" viewBox="0 0 16 16">
@@ -86,7 +86,7 @@
</p> </p>
</a> </a>
</div> </div>
<div class="col-md-4"></div> <div class="col-md-3"></div>
</div> </div>
</div> </div>
</div> </div>