yangdamao 2 years ago
parent
commit
30e013876c

+ 1 - 1
zhongzheng-framework/src/main/java/com/zhongzheng/framework/web/service/UserServiceImpl.java

@@ -671,7 +671,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
         if (ObjectUtils.isNotNull(bo.getIdcard())){
             pwd =  bo.getIdcard().substring(bo.getIdcard().length() - 6);
         }else {
-            pwd =  bo.getIdcard().substring(bo.getTel().length() - 6);
+            pwd =  bo.getTel().substring(bo.getTel().length() - 6);
         }
         inertData.setPassword(SecurityUtils.encryptPassword(pwd));
         if(!save(inertData)){