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

增加校验

parent 944b2588
...@@ -97,7 +97,6 @@ public class LoginInterceptorAspect { ...@@ -97,7 +97,6 @@ public class LoginInterceptorAspect {
String realIp = request.getHeader("x-real-ip"); String realIp = request.getHeader("x-real-ip");
String deviceCode = request.getHeader("x-user-platform"); String deviceCode = request.getHeader("x-user-platform");
String phone = request.getHeader("x-user-phone"); String phone = request.getHeader("x-user-phone");
String deviceId = null; String deviceId = null;
if (null != scDeviceId && !"".equals(scDeviceId)) { if (null != scDeviceId && !"".equals(scDeviceId)) {
...@@ -300,6 +299,7 @@ public class LoginInterceptorAspect { ...@@ -300,6 +299,7 @@ public class LoginInterceptorAspect {
/** /**
* 发送登录事件 * 发送登录事件
*
* @param type * @param type
* @param device * @param device
* @param phone * @param phone
...@@ -307,9 +307,14 @@ public class LoginInterceptorAspect { ...@@ -307,9 +307,14 @@ public class LoginInterceptorAspect {
* @param ip * @param ip
* @param loginResult * @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 { try {
if (null == phone) {
log.info("手机号没有直接估计是切面用在了不能用的地方直接放过");
return;
}
log.info("开始发送登录注册消息phone:{}", phone);
UserLoginRegEvent.UserLoginRegEventBuilder builder = UserLoginRegEvent.builder(); UserLoginRegEvent.UserLoginRegEventBuilder builder = UserLoginRegEvent.builder();
builder.maskPhoneNo(phone); 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