chendayu před 2 roky
rodič
revize
d3bff2914e

+ 1 - 3
PCS/src/main/java/cn/cslg/permission/service/TenantService.java

@@ -281,18 +281,16 @@ public class TenantService extends ServiceImpl<TenantEntityMapper, Tenant> {
     }
 
     public void addByInvitation(TenantVO tenantVo) {
-        //根据验证码查询是否存在
+        //根据邀请码查询是否存在
         LambdaQueryWrapper<Invitation> wrapper = new LambdaQueryWrapper<>();
         wrapper.eq(Invitation::getInvitation, tenantVo.getInvitation());
         List<Invitation> invitations = invitationService.list(wrapper);
         if (invitations == null || invitations.size() == 0) {
             ThrowException.throwXiaoShiException("邀请码不存在");
-            //return Response.error("邀请码不存在");
         }
         Invitation invitation = invitations.get(0);
         if (invitation.getIsInvalid().equals(1)) {
             ThrowException.throwXiaoShiException("邀请码已被使用");
-            //return Response.error("邀请码已被使用");
         }
         tenantVo.setTenantVipType(invitation.getVipType());
         tenantVo.setNumber(1);