申请接口 报错文本处理

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

@ -76,7 +76,7 @@ public enum FamilyErrorCode implements IResponseErrorCode {
/**
* 用户最近刚退出家族
*/
USER_RECENT_LEAVE(2513, "Your recently left a family. Please tryagain 1 day after leaving"),
USER_RECENT_LEAVE(2513, "Your recently left a family. Please try again 1 day after leaving"),
/**
* 家族承运不存在

View File

@ -54,7 +54,7 @@ public class ApplyJoinFamilyExe {
@Transactional(rollbackFor = Exception.class)
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.isFalse(FamilyErrorCode.THERE_ARE_FAMILIES_ERROR, getExistFamilyByUserId(cmd));