diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyCreateExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyCreateExe.java index ba465ffe..ad009053 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyCreateExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyCreateExe.java @@ -14,6 +14,7 @@ import com.red.circle.other.app.dto.cmd.family.FamilyCreateCmd; import com.red.circle.other.domain.gateway.user.UserProfileGateway; import com.red.circle.other.domain.model.user.UserProfile; import com.red.circle.other.infra.common.family.FamilyCommon; +import com.red.circle.other.infra.database.cache.key.FamilyKeys; import com.red.circle.other.infra.database.rds.entity.family.FamilyBaseInfo; import com.red.circle.other.infra.database.rds.entity.family.FamilyCreateRules; import com.red.circle.other.infra.database.rds.entity.family.FamilyLevelConfig; @@ -212,6 +213,9 @@ public class FamilyCreateExe { private void checkParam(FamilyCreateCmd cmd) { ResponseAssert.isFalse(ResponseErrorCode.REQUEST_PARAMETER_ERROR, StringUtils.isBlanks( cmd.getFamilyAvatar(), cmd.getFamilyName())); + + String string = redisService.getString(FamilyKeys.USER_LEAVE.getKey()); + ResponseAssert.isNull(FamilyErrorCode.USER_RECENT_LEAVE, string); //敏感词 // ResponseAssert.isFalse(DynamicErrorCode.SENSITIVE_WORD_ERROR, SensitiveWordFilter.checkSensitiveWord(cmd.getFamilyName())); // ResponseAssert.isFalse(DynamicErrorCode.SENSITIVE_WORD_ERROR, SensitiveWordFilter.checkSensitiveWord(cmd.getFamilyIntro()));