Commit 6ee9ecdf authored by 董建华's avatar 董建华

增加校验

parent 944b2588
......@@ -97,7 +97,6 @@ public class LoginInterceptorAspect {
String realIp = request.getHeader("x-real-ip");
String deviceCode = request.getHeader("x-user-platform");
String phone = request.getHeader("x-user-phone");
String deviceId = null;
if (null != scDeviceId && !"".equals(scDeviceId)) {
......@@ -300,6 +299,7 @@ public class LoginInterceptorAspect {
/**
* 发送登录事件
*
* @param type
* @param device
* @param phone
......@@ -307,9 +307,14 @@ public class LoginInterceptorAspect {
* @param ip
* @param loginResult
*/
private void sendEvent(UserLoginRegEvent.SubEventType type,Device device, String phone, String deviceId, String ip, Object loginResult) {
private void sendEvent(UserLoginRegEvent.SubEventType type, Device device, String phone, String deviceId, String ip, Object loginResult) {
try {
if (null == phone) {
log.info("手机号没有直接估计是切面用在了不能用的地方直接放过");
return;
}
log.info("开始发送登录注册消息phone:{}", phone);
UserLoginRegEvent.UserLoginRegEventBuilder builder = UserLoginRegEvent.builder();
builder.maskPhoneNo(phone);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment