封禁-登录异常-reason写死
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user