JiangChongBo vor 2 Jahren
Ursprung
Commit
200e8ad290

+ 3 - 5
src/main/java/com/caimei/service/auth/impl/AuthProductServiceImpl.java

@@ -794,14 +794,12 @@ public class AuthProductServiceImpl implements AuthProductService {
                 //判断是否是手机号
                 String phoneNumber=authVo.getCreateBy();
                 if(StringUtils.isNotEmpty(phoneNumber)){
-                    boolean matches = phoneNumber.matches("^[1][3,4,5,7,8,9][0-9]{9}$");
-                    if(matches){
+//                    boolean matches = phoneNumber.matches("^[1][3,4,5,7,8,9][0-9]{9}$");
+//                    if(matches){
                         //脱敏处理
-                        if(StringUtils.isNotEmpty(phoneNumber)){
                             phoneNumber = phoneNumber.replaceAll("(\\w{3})\\w*(\\w{4})", "$1****$2");
                             authVo.setCreateBy(phoneNumber);
-                        }
-                    }
+//                    }
                 }
             });
         }

+ 3 - 5
src/main/java/com/caimei/service/auth/impl/AuthServiceImpl.java

@@ -154,14 +154,12 @@ public class AuthServiceImpl implements AuthService {
                 //判断是否是手机号
                 String phoneNumber=authVo.getCreateBy();
                 if(StringUtils.isNotEmpty(phoneNumber)){
-                    boolean matches = phoneNumber.matches("^[1][3,4,5,7,8,9][0-9]{9}$");
-                    if(matches){
+//                    boolean matches = phoneNumber.matches("^[1][3,4,5,7,8,9][0-9]{9}$");
+//                    if(matches){
                         //脱敏处理
-                        if(StringUtils.isNotEmpty(phoneNumber)){
                             phoneNumber = phoneNumber.replaceAll("(\\w{3})\\w*(\\w{4})", "$1****$2");
                             authVo.setCreateBy(phoneNumber);
-                        }
-                    }
+//                    }
                 }
             });
         }