提交 91dac707 编写于 作者: Chongwen.jiang's avatar Chongwen.jiang

一键登录日志类型添加.

上级 cb9d4417
流水线 #22202 已失败 于阶段
in 0 second
...@@ -314,9 +314,9 @@ public class AutoCodeController extends AccountBaseController { ...@@ -314,9 +314,9 @@ public class AutoCodeController extends AccountBaseController {
if (Objects.nonNull(data)) { if (Objects.nonNull(data)) {
CheckcodeRiskResp respData = JSON.parseObject( CheckcodeRiskResp respData = JSON.parseObject(
JSON.toJSONString(data), CheckcodeRiskResp.class); JSON.toJSONString(data), CheckcodeRiskResp.class);
if(StringUtils.isNotEmpty(respData.getProcessCode())){ if (StringUtils.isNotEmpty(respData.getProcessCode())) {
Integer processCode = Integer.valueOf(respData.getProcessCode()); String processCode = respData.getProcessCode();
if(null != processCode){ if (StringUtils.isNotEmpty(processCode)) {
// 请求返回正常 // 请求返回正常
if (processCode.equals(RcRepTypeEnum.RC_SEND_FAIL.getCode())) { if (processCode.equals(RcRepTypeEnum.RC_SEND_FAIL.getCode())) {
throw new PicaWarnException(AccountExceptionEnum.PICA_RC_SEND_FAIL.getCode(), throw new PicaWarnException(AccountExceptionEnum.PICA_RC_SEND_FAIL.getCode(),
......
...@@ -11,29 +11,29 @@ package com.pica.cloud.account.account.server.enums; ...@@ -11,29 +11,29 @@ package com.pica.cloud.account.account.server.enums;
public enum RcRepTypeEnum { public enum RcRepTypeEnum {
// 风控禁止发送 // 风控禁止发送
RC_SEND_FAIL(2, "发送失败"), RC_SEND_FAIL("2", "发送失败"),
RC_TRIGGER(3, "需要触发风控滑动验证"), RC_TRIGGER("3", "需要触发风控滑动验证"),
// 账号、IP、设备在黑名单内,前端提示发送成功,后端不发送短信 // 账号、IP、设备在黑名单内,前端提示发送成功,后端不发送短信
RC_BLACKLIST(4, "发送成功"), RC_BLACKLIST("4", "发送成功"),
RC_DAY_LIMIT(5, "今日获取验证码次数已超过上限,请使用账户密码登录"), RC_DAY_LIMIT("5", "今日获取验证码次数已超过上限,请使用账户密码登录"),
RC_60_SECOND_LIMIT(6, "验证码发送频率过高,请{remainTime}秒后再试"), RC_60_SECOND_LIMIT("6", "验证码发送频率过高,请{remainTime}秒后再试"),
XXX(0, "xxxxxx"); XXX("0", "xxxxxx");
private Integer code; private String code;
private String msg; private String msg;
RcRepTypeEnum(Integer code, String msg) { RcRepTypeEnum(String code, String msg) {
this.code = code; this.code = code;
this.msg = msg; this.msg = msg;
} }
public Integer getCode() { public String getCode() {
return code; return code;
} }
public void setCode(Integer code) { public void setCode(String code) {
this.code = code; this.code = code;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册