Subversion Repositories SmartDukaan

Rev

Rev 1868 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1868 Rev 1999
Line 24... Line 24...
24
        try {
24
        try {
25
            UserContextServiceClient userContextServiceClient = new UserContextServiceClient();
25
            UserContextServiceClient userContextServiceClient = new UserContextServiceClient();
26
            in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient
26
            in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient
27
                    .getClient();
27
                    .getClient();
28
 
28
 
29
            long trackerId = Long.parseLong(cookiesMap.get(
29
            long affId = Long.parseLong(cookiesMap.get(
30
                    TrackingInterceptor.TRACKER).getValue());
30
                    TrackingInterceptor.AFF_COOKIE).getValue());
31
            long userId = 0;
31
            long userId = 0;
32
            if (userinfo != null) {
32
            if (userinfo != null) {
33
                userId = userinfo.getUserId();
33
                userId = userinfo.getUserId();
34
            }
34
            }
35
            userClient.addTrackLog(trackerId, userId, event, url,
35
            userClient.addTrackLog(affId, userId, event, url,
36
                    data, (new Date()).getTime());
36
                    data, (new Date()).getTime());
37
        } catch (Exception e) {
37
        } catch (Exception e) {
38
            log.error(e);
38
            log.error(e);
39
        }
39
        }
40
    }
40
    }
Line 48... Line 48...
48
    }
48
    }
49
	
49
	
50
	public void setData(String data) {
50
	public void setData(String data) {
51
        this.data = data;
51
        this.data = data;
52
    }
52
    }
53
}
53
}
54
54