linhw 2024-08-16 09:51:28 +08:00
parent b3ae25d62b
commit 7ab3bec6b6
1 changed files with 3 additions and 0 deletions

View File

@ -149,6 +149,9 @@ public class AppLoginController {
break; break;
} }
} else { } else {
if ("其他".equals(appSchool.getName()) && org.apache.commons.lang3.StringUtils.isBlank(registerForm.getInvitationCode())) {
return R.fail(2001,"请填写注册邀请码!");
}
if ("其他".equals(appSchool.getName()) && org.apache.commons.lang3.StringUtils.isNotBlank(registerForm.getInvitationCode())) { if ("其他".equals(appSchool.getName()) && org.apache.commons.lang3.StringUtils.isNotBlank(registerForm.getInvitationCode())) {
AppCode appCode = appCodeMapper.selectAppCodeByCode(registerForm.getInvitationCode()); AppCode appCode = appCodeMapper.selectAppCodeByCode(registerForm.getInvitationCode());
if (appCode == null || appCode.getUserId() != null) { if (appCode == null || appCode.getUserId() != null) {