|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.epmet.mq.listener.listener; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.epmet.auth.constants.AuthOperationConstants; |
|
|
|
import com.epmet.auth.constants.AuthOperationEnum; |
|
|
|
import com.epmet.commons.rocketmq.constants.MQUserPropertys; |
|
|
|
import com.epmet.commons.rocketmq.messages.LoginMQMsg; |
|
|
@ -77,7 +78,11 @@ public class AuthOperationLogListener implements MessageListenerConcurrently { |
|
|
|
logEntity.setOperatorName(operatorInfo.getName()); |
|
|
|
logEntity.setOperatorMobile(operatorInfo.getMobile()); |
|
|
|
logEntity.setOperatingTime(msgObj.getLoginTime()); |
|
|
|
if(AuthOperationConstants.LOGIN.equals(logEntity.getType())){ |
|
|
|
logEntity.setContent("成功登录系统"); |
|
|
|
}else{ |
|
|
|
logEntity.setContent("成功退出系统"); |
|
|
|
} |
|
|
|
|
|
|
|
DistributedLock distributedLock = null; |
|
|
|
RLock lock = null; |
|
|
|