Subversion Repositories SmartDukaan

Rev

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

Rev 555 Rev 590
Line 90... Line 90...
90
    	try {
90
    	try {
91
			UserContextServiceClient userServiceClient = new UserContextServiceClient();
91
			UserContextServiceClient userServiceClient = new UserContextServiceClient();
92
			Client client = userServiceClient.getClient();
92
			Client client = userServiceClient.getClient();
93
			long item_id = Long.parseLong(id);
93
			long item_id = Long.parseLong(id);
94
			boolean isSessionId = userinfo.isSessionId();
94
			boolean isSessionId = userinfo.isSessionId();
95
			long user_id = 0;
-
 
96
			if(userinfo.isLoggedIn())
-
 
97
				user_id = userinfo.getUserId();
-
 
98
			else
-
 
99
				user_id = userinfo.getUserId();
95
			long user_id = userinfo.getUserId();
100
			client.updateBrowseHistory(user_id, item_id, isSessionId);
96
			client.updateBrowseHistory(user_id, item_id, isSessionId);
101
			
97
			
102
		} catch (Exception e) {
98
		} catch (Exception e) {
103
			// TODO Auto-generated catch block
99
			// TODO Auto-generated catch block
104
			e.printStackTrace();
100
			e.printStackTrace();