diff --git a/src/main/java/com/kexue/skills/service/impl/SysUserServiceImpl.java b/src/main/java/com/kexue/skills/service/impl/SysUserServiceImpl.java
index cbfda48..8830f13 100644
--- a/src/main/java/com/kexue/skills/service/impl/SysUserServiceImpl.java
+++ b/src/main/java/com/kexue/skills/service/impl/SysUserServiceImpl.java
@@ -653,7 +653,7 @@ public class SysUserServiceImpl implements SysUserService {
Assert.notBlank(phone, "手机号不能为空");
// 验证手机号格式
- String phoneRegex = "^1[3-9\\d{9}$";
+ String phoneRegex = "^1[3-9]\\d{9}$";
if (!phone.matches(phoneRegex)) {
Assert.isTrue(false, "手机号格式不正确");
}
diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml
index c9fbc98..39fd501 100644
--- a/src/main/resources/application-prod.yml
+++ b/src/main/resources/application-prod.yml
@@ -8,7 +8,7 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
username: agent_skills
password: agent_skills@xueai666
- url: jdbc:mysql://43.248.97.19:12306/agent_skills?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&autoReconnect=true&maxReconnects=10&failOverReadOnly=false&allowPublicKeyRetrieval=true
+ url: jdbc:mysql://127.0.0.1:12306/agent_skills?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&autoReconnect=true&maxReconnects=10&failOverReadOnly=false&allowPublicKeyRetrieval=true
hikari:
pool-name: ProdHikariPool
maximum-pool-size: 30
diff --git a/src/main/resources/mapper/CmsContentMapper.xml b/src/main/resources/mapper/CmsContentMapper.xml
index 625c176..4ab92fd 100644
--- a/src/main/resources/mapper/CmsContentMapper.xml
+++ b/src/main/resources/mapper/CmsContentMapper.xml
@@ -62,7 +62,7 @@
and content_id = #{contentId}
- and title like concat('%', #{title}, '%')
+ and (title like concat('%', #{title}, '%') or summary like concat('%', #{title}, '%'))
and content_type = #{contentType}
@@ -125,7 +125,7 @@
and content_id = #{contentId}
- and title like concat('%', #{title}, '%')
+ and (title like concat('%', #{title}, '%') or summary like concat('%', #{title}, '%'))
and content_type = #{contentType}