ai模块
This commit is contained in:
@@ -23,7 +23,7 @@ import org.xyzh.common.dto.sys.TbSysDeptDTO;
|
||||
import org.xyzh.common.dto.sys.TbSysPermissionDTO;
|
||||
import org.xyzh.common.dto.sys.TbSysViewDTO;
|
||||
import org.xyzh.common.redis.service.RedisService;
|
||||
import org.xyzh.common.utils.IDUtils;
|
||||
import org.xyzh.common.utils.id.IdUtil;
|
||||
import org.xyzh.common.utils.crypto.AesEncryptUtil;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.apache.dubbo.config.annotation.DubboService;
|
||||
@@ -79,7 +79,7 @@ public class AuthServiceImpl implements AuthService{
|
||||
switch (captchaType) {
|
||||
case "image":
|
||||
// 生成图片验证码
|
||||
String captchaId = IDUtils.generateID();
|
||||
String captchaId = IdUtil.generateID();
|
||||
String captchaCode = CapcatUtils.generateVerificationCode();
|
||||
|
||||
// 存储验证码到Redis,有效期5分钟
|
||||
@@ -97,7 +97,7 @@ public class AuthServiceImpl implements AuthService{
|
||||
return ResultDomain.failure("手机号不能为空");
|
||||
}
|
||||
|
||||
String smsSessionId = IDUtils.generateID();
|
||||
String smsSessionId = IdUtil.generateID();
|
||||
String smsCode = CapcatUtils.generateVerificationCode();
|
||||
|
||||
// 存储短信验证码到Redis,有效期5分钟
|
||||
@@ -119,7 +119,7 @@ public class AuthServiceImpl implements AuthService{
|
||||
return ResultDomain.failure("邮箱不能为空");
|
||||
}
|
||||
|
||||
String emailSessionId = IDUtils.generateID();
|
||||
String emailSessionId = IdUtil.generateID();
|
||||
String emailCode = CapcatUtils.generateVerificationCode();
|
||||
|
||||
// 存储邮箱验证码到Redis,有效期5分钟
|
||||
@@ -210,7 +210,7 @@ public class AuthServiceImpl implements AuthService{
|
||||
@Override
|
||||
public ResultDomain<LoginDomain> login(LoginParam loginParam, HttpServletRequest request) {
|
||||
String loginType = loginParam.getLoginType();
|
||||
String loginAttempt = IDUtils.generateID(); // 生成登录尝试ID
|
||||
String loginAttempt = IdUtil.generateID(); // 生成登录尝试ID
|
||||
|
||||
try {
|
||||
logger.info("用户登录请求:loginType={}, username={}, attempt={}", loginType, loginParam.getUsername(), loginAttempt);
|
||||
|
||||
Reference in New Issue
Block a user