haungfuli 2 лет назад
Родитель
Сommit
7f492754cd

+ 0 - 8
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/CommonUserServiceImpl.java

@@ -429,14 +429,6 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
             if (CollectionUtils.isEmpty(commonStaffList)) {
                 throw new AppServiceException(ExceptionDefinition.USER_PHONE_NOT_EXIST);
             }
-        } else {
-            //2.校验用户是否存在
-            List<CommonUser> targetUserList = this.selectList(
-                    new EntityWrapper<CommonUser>()
-                            .eq("phone", phone).eq("identification", identification));
-            if (CollectionUtils.isEmpty(targetUserList)) {
-                throw new AppServiceException(ExceptionDefinition.USER_PHONE_NOT_EXIST);
-            }
         }
         String verifyCode = GeneratorUtil.genSixVerifyCode();
         System.out.println("verifyCode:" + verifyCode);