| | |
| | | |
| | | public void record(long uId, int operationType, String msg, String msgEnUS) { |
| | | UserLog userLog = new UserLog(); |
| | | userLog.setTerminalIp(ActionUtil.getRequest().getRemoteAddr()); |
| | | try { |
| | | HttpServletRequest request = ActionUtil.getRequest(); |
| | | userLog.setTerminalIp(request.getRemoteAddr()); |
| | | }catch (Exception e){ |
| | | userLog.setTerminalIp("127.0.0.1"); |
| | | } |
| | | //userLog.setTerminalIp(ActionUtil.getRequest().getRemoteAddr()); |
| | | //userLog.setTerminalIp(request.getRemoteAddr()); |
| | | userLog.setOperationTime(new Date()); |
| | | userLog.setUId((int) (uId)); |