Browse Source

移动端验证码登录去掉验证设备

master
dimengzhe 1 year ago
parent
commit
54a73fa0b0
  1. 8
      anrui-portal/anrui-portal-biz/src/main/java/com/yxt/anrui/portal/biz/sysuser/app/AppSysUserRest.java

8
anrui-portal/anrui-portal-biz/src/main/java/com/yxt/anrui/portal/biz/sysuser/app/AppSysUserRest.java

@ -272,21 +272,21 @@ public class AppSysUserRest implements AppSysUserFeign {
return new ResultBean().fail().setMsg("该手机号暂时还未注册,请先注册");
}
}
if (StringUtils.isNotBlank(sysUser.getAppId())) {
/*if (StringUtils.isNotBlank(sysUser.getAppId())) {
Map<String, Object> map = new HashMap<>();
map.put("mobile", mobile);
map.put("appId", appId);
int res = insertSysExceptionLog("b", JSON.toJSON(map).toString(), "当前账号已被其它设备绑定");
return new ResultBean<SysUserVo>().fail().setMsg("当前账号已被其它设备绑定(错误码:" + res + ")");
}
}*/
} else { // 设备已绑定账号
if (!mobile.equals(sysUser.getMobile())) {
/* if (!mobile.equals(sysUser.getMobile())) {
Map<String, Object> map = new HashMap<>();
map.put("mobile", mobile);
map.put("appId", appId);
int res = insertSysExceptionLog("a", JSON.toJSON(map).toString(), "当前设备已绑定其它账号");
return new ResultBean<SysUserVo>().fail().setMsg("当前设备已绑定其它账号(错误码:" + res + ")");
}
}*/
}
}
return sysUserService.sendVerificationCodeForApp(mobile, type);

Loading…
Cancel
Save