修改用户登陆验证码
This commit is contained in:
parent
f1af94eef3
commit
2a2b81e085
@ -15,6 +15,8 @@ import com.xhpc.user.aspect.LogUserUtils;
|
|||||||
import com.xhpc.user.domain.XhpcAppUser;
|
import com.xhpc.user.domain.XhpcAppUser;
|
||||||
import com.xhpc.user.mapper.XhpcAppUserMapper;
|
import com.xhpc.user.mapper.XhpcAppUserMapper;
|
||||||
import com.xhpc.user.service.IXhpcAppUserUserService;
|
import com.xhpc.user.service.IXhpcAppUserUserService;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
@ -43,6 +45,8 @@ public class XhpcAppUserServiceImpl implements IXhpcAppUserUserService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private LogUserUtils logUserUtils;
|
private LogUserUtils logUserUtils;
|
||||||
|
|
||||||
|
|
||||||
|
private static final Logger logger = LoggerFactory.getLogger(XhpcAppUserServiceImpl.class);
|
||||||
/**
|
/**
|
||||||
* 更新C端用户
|
* 更新C端用户
|
||||||
*
|
*
|
||||||
@ -153,7 +157,7 @@ public class XhpcAppUserServiceImpl implements IXhpcAppUserUserService {
|
|||||||
}
|
}
|
||||||
String captcha = redisService.getCacheObject("pvToken:" + phone);
|
String captcha = redisService.getCacheObject("pvToken:" + phone);
|
||||||
if (!code.equalsIgnoreCase(captcha)) {
|
if (!code.equalsIgnoreCase(captcha)) {
|
||||||
R.fail(HttpStatus.ERROR_STATUS, "验证码错误");
|
return R.fail(HttpStatus.ERROR_STATUS, "验证码错误");
|
||||||
}
|
}
|
||||||
return appLogin(phone, type, openid);
|
return appLogin(phone, type, openid);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user