申请接口 报错文本处理

This commit is contained in:
tianfeng 2025-12-29 17:11:54 +08:00
parent 987b51d00e
commit fc2e03f0be
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ public class ApplyJoinFamilyExe {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void execute(ApplyJoinFamilyCmd cmd) { public void execute(ApplyJoinFamilyCmd cmd) {
String string = redisService.getString(FamilyKeys.USER_LEAVE.getKey()); String string = redisService.getString(FamilyKeys.USER_LEAVE.getKey(cmd.getReqUserId()));
ResponseAssert.isNull(FamilyErrorCode.USER_RECENT_LEAVE, string); ResponseAssert.isNull(FamilyErrorCode.USER_RECENT_LEAVE, string);
ResponseAssert.isFalse(FamilyErrorCode.THERE_ARE_FAMILIES_ERROR, getExistFamilyByUserId(cmd)); ResponseAssert.isFalse(FamilyErrorCode.THERE_ARE_FAMILIES_ERROR, getExistFamilyByUserId(cmd));