feat(auth): 实现扫码登录功能并优化邮件模板

- 新增 QrLoginController、QrLoginService、QrLoginData等类实现扫码登录功能
- 更新邮件模板中的公司名称、网址等信息
- 添加 JWT 配置项
- 优化应用配置文件,启用 Jackson 对 Java 8 时间类型的支持
This commit is contained in:
2025-09-01 11:32:01 +08:00
parent c23302d9d3
commit 8529a826d7
20 changed files with 689 additions and 36 deletions

View File

@@ -41,6 +41,11 @@ spring:
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
serialization:
write-dates-as-timestamps: false
write-date-timestamps-as-nanoseconds: false
deserialization:
read-date-timestamps-as-nanoseconds: false
# 设置上传文件大小
servlet:
@@ -101,6 +106,10 @@ config:
bucketDomain: https://oss.wsdns.cn
aliyunDomain: https://oss-gxwebsoft.oss-cn-shenzhen.aliyuncs.com
# JWT配置
jwt:
secret: websoft-jwt-secret-key-2025-dev-environment
expire: 86400 # token过期时间(秒) 24小时
# 证书配置
certificate:

View File

@@ -6,19 +6,19 @@ email:
# 品牌信息
brand:
name: "WebSoft"
company: "南宁网宿信息科技有限公司"
company: "南宁网宿信息科技有限公司"
description: "企业级数字化解决方案"
website: "https://www.gxwebsoft.com"
website: "https://websoft.top"
support_email: "170083662@qq.com"
logo_url: "https://www.gxwebsoft.com/logo.png"
logo_url: "https://websoft.top/logo.png"
# 链接配置
links:
login: "https://www.gxwebsoft.com/login"
help: "https://www.gxwebsoft.com/help"
contact: "https://www.gxwebsoft.com/contact"
security: "https://www.gxwebsoft.com/security"
login: "https://websoft.top/login"
help: "https://websoft.top/help"
contact: "https://websoft.top/contact"
security: "https://websoft.top/security"
# 模板列表
templates:
register-success:
@@ -26,37 +26,37 @@ email:
description: "用户注册成功后发送的欢迎邮件"
file: "register-success.html"
subject: "恭喜您的WebSoft账号已注册成功"
password-reset:
name: "密码重置邮件"
description: "用户密码重置后发送的通知邮件"
file: "password-reset.html"
subject: "WebSoft密码重置通知"
notification:
name: "通用通知邮件"
description: "系统通知、公告等通用邮件模板"
file: "notification.html"
subject: "WebSoft系统通知"
security-alert:
name: "安全提醒邮件"
description: "账户安全相关的提醒邮件"
file: "notification.html"
subject: "WebSoft账户安全提醒"
maintenance:
name: "系统维护通知"
description: "系统维护时发送的通知邮件"
file: "notification.html"
subject: "WebSoft系统维护通知"
order-status:
name: "订单状态更新"
description: "订单状态变更时发送的通知邮件"
file: "notification.html"
subject: "WebSoft订单状态更新"
# 邮件样式配置
styles:
primary_color: "#667eea"
@@ -65,7 +65,7 @@ email:
warning_color: "#ffa502"
danger_color: "#ff6b6b"
info_color: "#4facfe"
# 邮件发送配置
settings:
retry_times: 3

View File

@@ -240,19 +240,18 @@
<!-- Footer -->
<div class="footer">
<div class="footer-content">
<strong>南宁网宿信息科技有限公司</strong><br>
<strong>WebSoft Admin</strong><br>
专业的企业数字化转型服务商
</div>
<div class="footer-links">
<a href="https://www.gxwebsoft.com">官方网站</a>
<a href="https://www.gxwebsoft.com/help">帮助中心</a>
<a href="https://www.gxwebsoft.com/contact">联系我们</a>
<a href="https://websoft.top">官方网站</a>
<a href="https://websoft.top/help">帮助中心</a>
<a href="https://websoft.top/contact">联系我们</a>
</div>
<div class="copyright">
© 2024 南宁网宿信息科技有限公司 版权所有<br>
如有疑问请联系客服170083662@qq.com
© 2025 WebSoft Inc.
</div>
</div>
</div>

View File

@@ -303,7 +303,7 @@
<!-- Footer -->
<div class="footer">
<div class="footer-content">
<strong>网宿软件</strong><br>
<strong>WebSoft Admin</strong><br>
专业的企业数字化转型服务商
</div>

View File

@@ -297,7 +297,7 @@
<!-- CTA Button -->
<div class="cta-section">
<a href="https://www.gxwebsoft.com/login" class="cta-button">立即登录体验</a>
<a href="https://websoft.top/login" class="cta-button">立即登录</a>
</div>
<!-- Features -->
@@ -331,20 +331,19 @@
<!-- Footer -->
<div class="footer">
<div class="footer-content">
<strong>南宁网宿信息科技有限公司</strong><br>
<strong>WebSoft Admin</strong><br>
专业的企业数字化转型服务商
</div>
<div class="footer-links">
<a href="https://www.gxwebsoft.com">官方网站</a>
<a href="https://www.gxwebsoft.com/help">帮助中心</a>
<a href="https://www.gxwebsoft.com/contact">联系我们</a>
<a href="https://websoft.top">官方网站</a>
<a href="https://websoft.top/help">帮助中心</a>
<a href="https://websoft.top/contact">联系我们</a>
</div>
<div class="copyright">
© 2024 南宁网宿信息科技有限公司 版权所有<br>
如有疑问请联系客服170083662@qq.com
</div>
<div class="copyright">
© 2025 WebSoft Inc.
</div>
</div>
</div>
</body>