封禁-登录异常-reason写死

This commit is contained in:
khalil
2024-06-24 20:29:31 +08:00
parent ffcab65745
commit c11c5dfa56

View File

@@ -83,7 +83,7 @@ public class AccountBlockCheckService {
log.info("用户被封禁,blockValue =" + accountBlock.getBlockValue());
BlockTypeEnum blockTypeEnum = BlockTypeEnum.get(accountBlock.getBlockType());
CustomOAuth2Exception exception = new CustomOAuth2Exception(CustomOAuth2Exception.ACCOUNT_ERROR, blockTypeEnum.getBlockDesc());
exception.addAdditionalInformation("reason", accountBlock.getBlockDesc());
exception.addAdditionalInformation("reason", "违规请联系客服WeChat:sd245376");
exception.addAdditionalInformation("date", String.valueOf(accountBlock.getBlockEndTime().getTime()));
throw exception;
}