申请接口 报错文本处理
This commit is contained in:
parent
987b51d00e
commit
fc2e03f0be
@ -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"),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 家族承运不存在
|
* 家族承运不存在
|
||||||
|
|||||||
@ -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));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user